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;
  }
}