Commit b8a60f5b authored by Devon Carew's avatar Devon Carew Committed by GitHub

suppress exceptions from loader progress display messages (#5510)

parent 243b4c06
......@@ -770,22 +770,25 @@ class Isolate extends ServiceObjectOwner {
// Loader page extension methods.
Future<Map<String, dynamic>> flutterLoaderShowMessage(String message) {
return invokeRpcRaw('ext.flutter.loaderShowMessage', <String, dynamic> {
void flutterLoaderShowMessage(String message) {
// Invoke loaderShowMessage; ignore any returned errors.
invokeRpcRaw('ext.flutter.loaderShowMessage', <String, dynamic> {
'value': message
});
}).catchError((dynamic error) => null);
}
Future<Map<String, dynamic>> flutterLoaderSetProgress(double progress) {
return invokeRpcRaw('ext.flutter.loaderSetProgress', <String, dynamic>{
void flutterLoaderSetProgress(double progress) {
// Invoke loaderSetProgress; ignore any returned errors.
invokeRpcRaw('ext.flutter.loaderSetProgress', <String, dynamic>{
'loaderSetProgress': progress
});
}).catchError((dynamic error) => null);
}
Future<Map<String, dynamic>> flutterLoaderSetProgressMax(double max) {
return invokeRpcRaw('ext.flutter.loaderSetProgressMax', <String, dynamic>{
void flutterLoaderSetProgressMax(double max) {
// Invoke loaderSetProgressMax; ignore any returned errors.
invokeRpcRaw('ext.flutter.loaderSetProgressMax', <String, dynamic>{
'loaderSetProgressMax': max
});
}).catchError((dynamic error) => null);
}
/// Causes the application to pick up any changed code.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment