Plugin template uses new channel name (#9453)
This commit is contained in:
committed by
GitHub
parent
2cf50ce574
commit
79afc77594
@@ -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<String> get platformVersion =>
|
||||
_channel.invokeMethod('getPlatformVersion');
|
||||
|
||||
Reference in New Issue
Block a user