compdfkit_flutter_platform_interface.dart 1.0 KB

1234567891011121314151617181920212223242526272829
  1. import 'package:plugin_platform_interface/plugin_platform_interface.dart';
  2. import 'compdfkit_flutter_method_channel.dart';
  3. abstract class CompdfkitFlutterPlatform extends PlatformInterface {
  4. /// Constructs a CompdfkitFlutterPlatform.
  5. CompdfkitFlutterPlatform() : super(token: _token);
  6. static final Object _token = Object();
  7. static CompdfkitFlutterPlatform _instance = MethodChannelCompdfkitFlutter();
  8. /// The default instance of [CompdfkitFlutterPlatform] to use.
  9. ///
  10. /// Defaults to [MethodChannelCompdfkitFlutter].
  11. static CompdfkitFlutterPlatform get instance => _instance;
  12. /// Platform-specific implementations should set this with their own
  13. /// platform-specific class that extends [CompdfkitFlutterPlatform] when
  14. /// they register themselves.
  15. static set instance(CompdfkitFlutterPlatform instance) {
  16. PlatformInterface.verifyToken(instance, _token);
  17. _instance = instance;
  18. }
  19. Future<String?> getPlatformVersion() {
  20. throw UnimplementedError('platformVersion() has not been implemented.');
  21. }
  22. }