handleMethod method

Future handleMethod(
  1. MethodCall call
)

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;
}