config method
void
config({
- bool? enableLog,
- LogWriterCallback? logWriterCallback,
- bool? defaultPopGesture,
- bool? defaultOpaqueRoute,
- Duration? defaultDurationTransition,
- bool? defaultGlobalState,
- Transition? defaultTransition,
change default config of Get
Implementation
void config(
{bool? enableLog,
LogWriterCallback? logWriterCallback,
bool? defaultPopGesture,
bool? defaultOpaqueRoute,
Duration? defaultDurationTransition,
bool? defaultGlobalState,
Transition? defaultTransition}) {
if (enableLog != null) {
Get.isLogEnable = enableLog;
}
if (logWriterCallback != null) {
Get.log = logWriterCallback;
}
if (defaultPopGesture != null) {
_getxController.defaultPopGesture = defaultPopGesture;
}
if (defaultOpaqueRoute != null) {
_getxController.defaultOpaqueRoute = defaultOpaqueRoute;
}
if (defaultTransition != null) {
_getxController.defaultTransition = defaultTransition;
}
if (defaultDurationTransition != null) {
_getxController.defaultTransitionDuration = defaultDurationTransition;
}
}