package o; import android.content.Context; import io.flutter.embedding.engine.plugins.FlutterPlugin; import io.flutter.plugin.common.BinaryMessenger; import io.flutter.plugin.common.MethodChannel; /* renamed from: o.fRn, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13132fRn implements FlutterPlugin { private MethodChannel b; @Override // io.flutter.embedding.engine.plugins.FlutterPlugin public final void onAttachedToEngine(FlutterPlugin.FlutterPluginBinding flutterPluginBinding) { C14957gcv.e(flutterPluginBinding, ""); BinaryMessenger binaryMessenger = flutterPluginBinding.getBinaryMessenger(); C14957gcv.c(binaryMessenger, ""); Context applicationContext = flutterPluginBinding.getApplicationContext(); C14957gcv.c(applicationContext, ""); this.b = new MethodChannel(binaryMessenger, "PonnamKarthik/fluttertoast"); C13131fRm c13131fRm = new C13131fRm(applicationContext); MethodChannel methodChannel = this.b; if (methodChannel != null) { methodChannel.setMethodCallHandler(c13131fRm); } } @Override // io.flutter.embedding.engine.plugins.FlutterPlugin public final void onDetachedFromEngine(FlutterPlugin.FlutterPluginBinding flutterPluginBinding) { C14957gcv.e(flutterPluginBinding, ""); MethodChannel methodChannel = this.b; if (methodChannel != null) { methodChannel.setMethodCallHandler(null); } this.b = null; } }