Google is committed to advancing racial equity for Black communities. See how.

register method

*[<Null safety>](https://dart.dev/null-safety)*

void register (int viewId, Future handler(dynamic call)?)

Register a MethodCall handler for a given viewId.

Implementation

void register(
        int viewId, Future<dynamic> Function(MethodCall call)? handler) =>
    _callHandlers[viewId] = handler;