registerWith static method
Registers this plugin with the given registrar.
This creates a MethodChannel named 'restart', and sets the method call handler to
this plugin's handleMethodCall method.
Implementation
static void registerWith(Registrar registrar) {
final MethodChannel channel = MethodChannel(
'restart',
const StandardMethodCodec(),
registrar,
);
final pluginInstance = RestartWeb();
channel.setMethodCallHandler(pluginInstance.handleMethodCall);
}