File size: 632 Bytes
a4ff84b
 
 
 
 
 
b0336a8
a4ff84b
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{#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/to/pubspec-plugin-platforms.
{{/no_platforms}}

import '{{projectName}}_platform_interface.dart';

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