handleMethod method
Implementation
Future<dynamic> handleMethod(MethodCall call) async {
switch (call.method) {
case "onRefresh":
if (onRefresh != null) onRefresh!();
break;
default:
throw UnimplementedError("Unimplemented ${call.method} method");
}
return null;
}