diff --git a/packages/flutter_tools/templates/plugin/lib/projectName.dart.tmpl b/packages/flutter_tools/templates/plugin/lib/projectName.dart.tmpl index 0350ecde7e..b61b95ff0f 100644 --- a/packages/flutter_tools/templates/plugin/lib/projectName.dart.tmpl +++ b/packages/flutter_tools/templates/plugin/lib/projectName.dart.tmpl @@ -3,8 +3,8 @@ import 'dart:async'; import 'package:flutter/services.dart'; class {{pluginDartClass}} { - static const PlatformMethodChannel _channel = - const PlatformMethodChannel('{{projectName}}'); + static const MethodChannel _channel = + const MethodChannel('{{projectName}}'); static Future get platformVersion => _channel.invokeMethod('getPlatformVersion');