handleMethod method

Future handleMethod(
  1. MethodCall call
)

Implementation

Future<dynamic> handleMethod(MethodCall call) async {
  try {
    switch (call.method) {
      case "updateRecordInfo":
        updateRecordInfo(Map.from(call.arguments));
        break;
      case "updateRecordError":
        updateRecordError(Map.from(call.arguments));
        break;
      case "updateRecordState":
        updateRecordState(Map.from(call.arguments));
        break;
      default:
        throw UnsupportedError("method not supported ${call.method} ${call.arguments}");
    }
  } catch (e) {
    print(e);
    rethrow;
  }

}