diff --git a/fair/lib/src/internal/bind_data.dart b/fair/lib/src/internal/bind_data.dart index 43fc268c..5b1ae1a6 100644 --- a/fair/lib/src/internal/bind_data.dart +++ b/fair/lib/src/internal/bind_data.dart @@ -105,10 +105,10 @@ class BindingData { return ([props]) { var arguments = []; if (props != null) { - arguments.add(props); + arguments.addAll(props); } if (args != null) { - arguments.add(args); + arguments.addAll(args); } _functions?['runtimeInvokeMethod']?.call(rFuncName, arguments); }; diff --git a/fair/lib/src/runtime/runtime_fair_delegate.dart b/fair/lib/src/runtime/runtime_fair_delegate.dart index 423a0d9c..32cb36c6 100644 --- a/fair/lib/src/runtime/runtime_fair_delegate.dart +++ b/fair/lib/src/runtime/runtime_fair_delegate.dart @@ -90,7 +90,7 @@ abstract class RuntimeFairDelegate { var arguments; if (props != null) { arguments = []; - arguments.add(props); + arguments.addAll(props); } return runtime?.invokeMethod(pageName, funcName, arguments); };