PrizorSdkParams class
Constructors
-
PrizorSdkParams({required Environment? environment, required String appId, required String secret, required String appName, required Color accentColor, required Color accentForegroundColor, required User user, Uri? appLogo, Uri? appBrand, Color? splashForegroundColor, Color? splashBackgroundColor, Sac? sac, bool isRootRoute = false, String titleRoute = ''})
-
const
-
PrizorSdkParams.fromJson(Map<String, dynamic> json)
-
factory
Properties
-
accentColor
→ Color
-
Primary color of the app, used in AppBar, buttons, icons, etc.
final
-
accentForegroundColor
→ Color
-
Foreground color of the app.
final
-
appBrand
→ Uri?
-
Image in the home screen. If it is null, the brand will not be shown. USE PNG FORMAT.
final
-
appId
→ String
-
App ID provided by CRMALL.
final
-
appLogo
→ Uri?
-
Image in the campaigns. If it is null, the logo will not be shown. USE PNG FORMAT.
final
-
appName
→ String
-
App name to be shown in the app.
final
-
environment
→ Environment?
-
Environment of the app:
production, stage, development, master
. Use Environment.production for production.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
isRootRoute
→ bool
-
If it is true, the app will be opened in the root route Use with BottomNavigationBar, TabBar, etc.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
sac
→ Sac?
-
SAC data to be used in the app campaigns.
final
-
secret
→ String
-
App secret provided by CRMALL.
final
-
splashBackgroundColor
→ Color?
-
Splash screen background color. If it is null, accentForegroundColor will be used.
final
-
splashForegroundColor
→ Color?
-
Splash screen foreground color. If it is null, accentColor will be used.
final
-
titleRoute
→ String
-
If it is true, the app will be opened in the title route Use with AppBar, etc.
final
-
user
→ User
-
User data to be used in the app campaigns.
final