DrivenSwitcherThemeData.from constructor

DrivenSwitcherThemeData.from([
  1. DrivenSwitcherThemeData? other,
  2. DrivenSwitcherThemeData fallback = const DrivenSwitcherThemeData()
])

Creates a DrivenSwitcherThemeData from another one that probably null.

Implementation

DrivenSwitcherThemeData.from([
  DrivenSwitcherThemeData? other,
  DrivenSwitcherThemeData fallback = const DrivenSwitcherThemeData(),
])  : duration = other?.duration ?? fallback.duration,
      reverseDuration = other?.reverseDuration ?? fallback.reverseDuration,
      switchInCurve = other?.switchInCurve ?? fallback.switchInCurve,
      switchOutCurve = other?.switchOutCurve ?? fallback.switchOutCurve,
      transitionBuilder =
          other?.transitionBuilder ?? fallback.transitionBuilder,
      layoutBuilder = other?.layoutBuilder ?? fallback.layoutBuilder,
      maintainKey = other?.maintainKey ?? fallback.maintainKey;