Plugin template uses new channel name (#9453)

This commit is contained in:
Mikkel Nygaard Ravn
2017-04-18 22:54:01 +02:00
committed by GitHub
parent 2cf50ce574
commit 79afc77594

View File

@@ -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');