WtConfig constructor
const
WtConfig({
- required String appName,
- required String baseUrl,
- required String secretKey,
- ThemeData? theme,
- bool debugMode = false,
- String? envelopeKey,
- String messageKey = 'msg',
- String? successKey,
- String tokenKey = 'token',
- bool sanitizeRequests = false,
- bool animationsEnabled = true,
- WtTransition pageTransition = WtTransition.platform,
- Duration animDuration = const Duration(milliseconds: 300),
- Curve animCurve = Curves.easeOut,
- Duration? requestTimeout = const Duration(seconds: 30),
- int maxRetries = 0,
Implementation
const WtConfig({
required this.appName,
required this.baseUrl,
required this.secretKey,
this.theme,
this.debugMode = false,
this.envelopeKey,
this.messageKey = 'msg',
this.successKey,
this.tokenKey = 'token',
this.sanitizeRequests = false,
this.animationsEnabled = true,
this.pageTransition = WtTransition.platform,
this.animDuration = const Duration(milliseconds: 300),
this.animCurve = Curves.easeOut,
this.requestTimeout = const Duration(seconds: 30),
this.maxRetries = 0,
});