Shark class

Shark entry point in order to make shark starts, you need to add Shark.init before flutter app run

Sample : void main(List args) async { await Shark.init('https://google.com');

runApp(MyApp()); }

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

isInitialized → dynamic
Check if the shark library has been initialized
no setter

Static Methods

init({required String hostUrl, RemoteConfig? remoteConfig, SharkErrorFunction? onError, CacheStrategy? cacheStrategy}) Future<void>
init shark client see also _SharkCore.init remoteConfig config for network client cacheStrategy the strategy for json data caching