methodCallHandler method
- MethodCall call
Implementation
Future<void> methodCallHandler(MethodCall call) async {
switch (call.method) {
case 'onLoadStarted':
if (onLoadStarted != null) {
onLoadStarted!();
}
break;
case 'onLoadFinished':
if (onLoadFinished != null) {
onLoadFinished!();
}
break;
case 'onClose':
if (onClose != null) {
onClose!();
}
break;
default:
print('Unknown method.');
}
}