HyperSDK class Null safety

Core class to expose all HyperSDK api's to flutter.

Proper integration constructs to be followed.

Constructors

HyperSDK({required Function onInitiateResult, required Function onProcessResult, required Function onShowLoader, required Function onHideLoader})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

initiate(Map<String, dynamic> params) Future<String>
Initiates and setup's the SDK. [...]
isInitialised() Future<bool>
Check if SDK is initiated. If SDK is not initiated first call initiate to setup SDK. {@category Required}
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onBackPress() Future<String>
Required for Android backpress handling. {@category Required}
process(Map<String, dynamic> params) Future<String>
To be called for triggering any actions on SDK. [...]
terminate() Future<String>
Kills the SDK and cleans up any extra resources. {@category Optional}
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

preFetch(Map<String, dynamic> params) Future<String>
Fetches dynamic assets for SDK. {@category Optional}