projectName.dart.tmpl 334 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 12
  static Future<String> get platformVersion async {
    final String version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }
13
}