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 { ...@@ -770,22 +770,25 @@ class Isolate extends ServiceObjectOwner {
// Loader page extension methods. // Loader page extension methods.
Future<Map<String, dynamic>> flutterLoaderShowMessage(String message) { void flutterLoaderShowMessage(String message) {
return invokeRpcRaw('ext.flutter.loaderShowMessage', <String, dynamic> { // Invoke loaderShowMessage; ignore any returned errors.
invokeRpcRaw('ext.flutter.loaderShowMessage', <String, dynamic> {
'value': message 'value': message
}); }).catchError((dynamic error) => null);
} }
Future<Map<String, dynamic>> flutterLoaderSetProgress(double progress) { void flutterLoaderSetProgress(double progress) {
return invokeRpcRaw('ext.flutter.loaderSetProgress', <String, dynamic>{ // Invoke loaderSetProgress; ignore any returned errors.
invokeRpcRaw('ext.flutter.loaderSetProgress', <String, dynamic>{
'loaderSetProgress': progress 'loaderSetProgress': progress
}); }).catchError((dynamic error) => null);
} }
Future<Map<String, dynamic>> flutterLoaderSetProgressMax(double max) { void flutterLoaderSetProgressMax(double max) {
return invokeRpcRaw('ext.flutter.loaderSetProgressMax', <String, dynamic>{ // Invoke loaderSetProgressMax; ignore any returned errors.
invokeRpcRaw('ext.flutter.loaderSetProgressMax', <String, dynamic>{
'loaderSetProgressMax': max 'loaderSetProgressMax': max
}); }).catchError((dynamic error) => null);
} }
/// Causes the application to pick up any changed code. /// 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