InBaseConfig class

This is the configuration object of InBase

Constructors

InBaseConfig({required int projectId, required String apiKey, bool? showToastOnError, String? appVersion, String? appPackageName})

Properties

apiKey String
Your project API key Generated from inbase.webinify.com
getter/setter pair
appPackageName String?
This is the package name
getter/setter pair
appVersion String?
This is the app version You must set this
getter/setter pair
encryptedSharedPreferences ↔ EncryptedSharedPreferences
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
projectId int
Your project ID Generated from inbase.webinify.com
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showToastOnError bool?
This will enable or disable the FlutterToastNotifications By default it set to true
getter/setter pair

Methods

initPackageInfo() → dynamic
This will initiate package info details for the app
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
This function will save the app credentials in encrypted SharedPreferences
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getConfig() Future<InBaseConfig>
This will return the saved config

Constants

sharedPreferenceApiKey → const String
sharedPreferenceProjectId → const String
Definition of all sharedPreferenceKeys
sharedPreferenceShowToastKey → const String