|
|
|
|
|
|
name: name, |
|
|
|
callback: |
|
|
|
((IDictionary<string, string> parameters) => { |
|
|
|
var result = new SynchronousFuture<IDictionary<string, object>>(new Dictionary<string, object>() |
|
|
|
{{"result", callback}}); |
|
|
|
//Future.value(FutureOr.value(new Dictionary<string, object>(){{"result", callback}})).to<IDictionary<string, object>>();
|
|
|
|
var result = Future.value(FutureOr.value(new Dictionary<string, object>(){{"result", callback}})).to<IDictionary<string, object>>(); |
|
|
|
return result; |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
registerServiceExtension( |
|
|
|
name: name, |
|
|
|
callback: (IDictionary<string, string> parameters) => { |
|
|
|
var result = new SynchronousFuture<IDictionary<string, object>>(new Dictionary<string, object> |
|
|
|
{{"result", callback(parameters["objectGroup"])}}); |
|
|
|
//Future.value(FutureOr.value((new Dictionary<string, object>{{"result", callback(parameters["objectGroup"])}}))).to<IDictionary<string, object>>();
|
|
|
|
var result = Future.value(FutureOr.value((new Dictionary<string, object>{{"result", callback(parameters["objectGroup"])}}))).to<IDictionary<string, object>>(); |
|
|
|
return result; |
|
|
|
} |
|
|
|
); |
|
|
|
|
|
|
binding.buildOwner.reassemble(binding.renderViewElement); |
|
|
|
return binding.endOfFrame; |
|
|
|
} |
|
|
|
return new SynchronousFuture(null); |
|
|
|
return Future.value(); |
|
|
|
}*/ |
|
|
|
|
|
|
|
static string _consoleObjectGroup = "console-group"; |
|
|
|
|
|
|
getter: () => FlutterError.onError == structuredExceptionHandler, |
|
|
|
setter: (bool value)=> { |
|
|
|
FlutterError.onError = value ? structuredExceptionHandler : defaultExceptionHandler; |
|
|
|
return new SynchronousFuture(null); |
|
|
|
return Future.value(); |
|
|
|
} |
|
|
|
); |
|
|
|
|
|
|
|