SwitchThemeData.from constructor

SwitchThemeData.from([
  1. SwitchThemeData? other
])

Creates a SwitchThemeData from another one that probably null.

Implementation

SwitchThemeData.from([SwitchThemeData? other])
    : curve = other?.curve ?? fallback.curve,
      duration = other?.duration ?? fallback.duration,
      style = other?.style ?? fallback.style;