projectName.dart.tmpl 679 Bytes
Newer Older
1
{{#no_platforms}}
2 3 4 5 6 7
// 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.
8 9
{{/no_platforms}}

10
import '{{projectName}}_platform_interface.dart';
11 12

class {{pluginDartClass}} {
13 14
  Future<String?> getPlatformVersion() {
    return {{pluginDartClass}}Platform.instance.getPlatformVersion();
15
  }
16
}