projectName.dart.tmpl 278 Bytes
Newer Older
1 2 3 4 5
import 'dart:async';

import 'package:flutter/services.dart';

class {{pluginDartClass}} {
6 7
  static const MethodChannel _channel =
      const MethodChannel('{{projectName}}');
8 9 10 11

  static Future<String> get platformVersion =>
      _channel.invokeMethod('getPlatformVersion');
}