DrivenSpinnerThemeData.from constructor

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

Creates a DrivenSpinnerThemeData from another one that probably null.

Implementation

DrivenSpinnerThemeData.from([
  DrivenSpinnerThemeData? other,
  DrivenSpinnerThemeData fallback = const DrivenSpinnerThemeData(),
])  : size = other?.size ?? fallback.size,
      color = other?.color ?? fallback.color,
      backgroundColor = other?.backgroundColor ?? fallback.backgroundColor,
      width = other?.width ?? fallback.width,
      offset = other?.offset ?? fallback.offset,
      rounded = other?.rounded ?? fallback.rounded;