mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
17 lines
679 B
Cheetah
17 lines
679 B
Cheetah
{{#no_platforms}}
|
|
// You have generated a new plugin project without specifying the `--platforms`
|
|
// flag. A plugin project with no platform support was generated. To add a
|
|
// platform, run `flutter create -t plugin --platforms <platforms> .` under the
|
|
// same directory. You can also find a detailed instruction on how to add
|
|
// platforms in the `pubspec.yaml` at
|
|
// https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms.
|
|
{{/no_platforms}}
|
|
|
|
import '{{projectName}}_platform_interface.dart';
|
|
|
|
class {{pluginDartClass}} {
|
|
Future<String?> getPlatformVersion() {
|
|
return {{pluginDartClass}}Platform.instance.getPlatformVersion();
|
|
}
|
|
}
|