save_file_platform_interface.dart
1.06 KB
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'save_file_method_channel.dart';
abstract class SaveFilePlatform extends PlatformInterface {
/// Constructs a SaveFilePlatform.
SaveFilePlatform() : super(token: _token);
static final Object _token = Object();
static SaveFilePlatform _instance = MethodChannelSaveFile();
/// The default instance of [SaveFilePlatform] to use.
///
/// Defaults to [MethodChannelSaveFile].
static SaveFilePlatform get instance => _instance;
/// Platform-specific implementations should set this with their own
/// platform-specific class that extends [SaveFilePlatform] when
/// they register themselves.
static set instance(SaveFilePlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}
Future<String?> getPlatformVersion() {
throw UnimplementedError('platformVersion() has not been implemented.');
}
Future<String?> saveFile(String path,String fileName) {
throw UnimplementedError('saveFile() has not been implemented.');
}
}