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