registerWith static method
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);
}