flutter/packages/flutter_tools/templates/plugin/lib/projectName.dart.tmpl
2018-03-16 20:29:38 +01:00

14 lines
334 B
Cheetah

import 'dart:async';
import 'package:flutter/services.dart';
class {{pluginDartClass}} {
static const MethodChannel _channel =
const MethodChannel('{{projectName}}');
static Future<String> get platformVersion async {
final String version = await _channel.invokeMethod('getPlatformVersion');
return version;
}
}