mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
14 lines
334 B
Cheetah
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;
|
|
}
|
|
}
|