registerWith static method

void registerWith(
  1. Registrar registrar
)

Registers MethodChannel used to communicate with the platform side.

Implementation

static void registerWith(Registrar registrar) {
  final MethodChannel channel = MethodChannel(
      'PonnamKarthik/fluttertoast', const StandardMethodCodec(), registrar);
  final FluttertoastWebPlugin instance = FluttertoastWebPlugin();
  channel.setMethodCallHandler(instance.handleMethodCall);
}