NeumorphicSwitchStyle constructor

const NeumorphicSwitchStyle({
  1. double? trackDepth,
  2. NeumorphicShape? thumbShape = NeumorphicShape.concave,
  3. Color? activeTrackColor,
  4. Color? inactiveTrackColor,
  5. Color? activeThumbColor,
  6. Color? inactiveThumbColor,
  7. double? thumbDepth,
  8. LightSource? lightSource,
  9. bool disableDepth = false,
  10. NeumorphicBorder thumbBorder = const NeumorphicBorder.none(),
  11. NeumorphicBorder trackBorder = const NeumorphicBorder.none(),
})

Implementation

const NeumorphicSwitchStyle({
  this.trackDepth,
  this.thumbShape = NeumorphicShape.concave,
  this.activeTrackColor,
  this.inactiveTrackColor,
  this.activeThumbColor,
  this.inactiveThumbColor,
  this.thumbDepth,
  this.lightSource,
  this.disableDepth = false,
  this.thumbBorder = const NeumorphicBorder.none(),
  this.trackBorder = const NeumorphicBorder.none(),
});