import 'package:plugin_platform_interface/plugin_platform_interface.dart'; import 'gravity_engine_method_channel.dart'; abstract class GravityEnginePlatform extends PlatformInterface { /// Constructs a GravityEnginePlatform. GravityEnginePlatform() : super(token: _token); static final Object _token = Object(); static GravityEnginePlatform _instance = MethodChannelGravityEngine(); /// The default instance of [GravityEnginePlatform] to use. /// /// Defaults to [MethodChannelGravityEngine]. static GravityEnginePlatform get instance => _instance; /// Platform-specific implementations should set this with their own /// platform-specific class that extends [GravityEnginePlatform] when /// they register themselves. static set instance(GravityEnginePlatform instance) { PlatformInterface.verifyToken(instance, _token); _instance = instance; } Future initialize(String appId, String accessToken, String clientId, String channel, bool debug) { throw UnimplementedError('initialize() has not been implemented.'); } Future trackEvent(String eventName, {Map? eventProperties}) { throw UnimplementedError('trackEvent() has not been implemented.'); } Future trackPay(String orderNo, String itemName, int amountCent, String currency, PayType payType) { throw UnimplementedError('trackPay() has not been implemented.'); } Future login(String clientId) { throw UnimplementedError('login() has not been implemented.'); } Future logout() { throw UnimplementedError('logout() has not been implemented.'); } }