config method

void config({
  1. bool? enableLog,
  2. LogWriterCallback? logWriterCallback,
  3. bool? defaultPopGesture,
  4. bool? defaultOpaqueRoute,
  5. Duration? defaultDurationTransition,
  6. bool? defaultGlobalState,
  7. 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;
  }
}