NeumorphismSwitchStyle constructor

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

Implementation

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