LunePlatform class abstract
The platform interface for the Lune SDK.
This abstract class defines the interface that platform-specific implementations must implement to provide native functionality for the Lune SDK.
Platform implementations should extend this class and implement all its methods. The default implementation uses method channels to communicate with the native platform.
- Inheritance
-
- Object
- PlatformInterface
- LunePlatform
- Implementers
Constructors
- LunePlatform.new()
- Constructs a LunePlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroySdk(
) → Future< void> - Cleans up resources and destroys the SDK instance.
-
getCashflowWidget(
) → Future< Widget?> - Returns a widget that displays the cash flow view.
-
initializeSdk(
String baseUrl, String accessToken) → Future< void> - Initializes the SDK with the provided credentials.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
optInForErrorLogger(
) → Future< void> - Registers the platform to receive error logging events from the SDK.
-
optInForErrorNotifier(
) → Future< void> - Registers the platform to receive error notifications from the SDK.
-
optInForEventListener(
) → Future< void> - Registers the platform to receive event notifications from the SDK.
-
optInForSuccessNotifier(
) → Future< void> - Registers the platform to receive success notifications from the SDK.
-
registerRefreshTokenCallback(
) → Future< void> - Registers a callback for token refresh requests.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ LunePlatform
-
The default instance of LunePlatform to use.
getter/setter pair