import 'package:plugin_platform_interface/plugin_platform_interface.dart'; import 'amap_flutter_method_channel.dart'; abstract class AmapFlutterPlatform extends PlatformInterface { /// Constructs a AmapFlutterPlatform. AmapFlutterPlatform() : super(token: _token); static final Object _token = Object(); static AmapFlutterPlatform _instance = MethodChannelAmapFlutter(); /// The default instance of [AmapFlutterPlatform] to use. /// /// Defaults to [MethodChannelAmapFlutter]. static AmapFlutterPlatform get instance => _instance; /// Platform-specific implementations should set this with their own /// platform-specific class that extends [AmapFlutterPlatform] when /// they register themselves. static set instance(AmapFlutterPlatform instance) { PlatformInterface.verifyToken(instance, _token); _instance = instance; } Future setApiKey({String? iosKey, String? androidKey}) { throw UnimplementedError('init() has not been implemented.'); } Future initLocation() { throw UnimplementedError('initLocation() has not been implemented.'); } Future startLocation() { throw UnimplementedError('startLocation() has not been implemented.'); } Stream locationStream() { throw UnimplementedError('locationStream() has not been implemented.'); } Future stopLocation() { throw UnimplementedError('stopLocation() has not been implemented.'); } Future dispose() { throw UnimplementedError('dispose() has not been implemented.'); } }