SliderSettingsCell constructor

SliderSettingsCell({
  1. Key? key,
  2. Set<MaterialState>? initialStates,
  3. String title = '',
  4. String subtitle = '',
  5. double value = 0.0,
  6. Widget? leadingWidget,
  7. AccessoryType accessoryType = AccessoryType.None,
  8. VoidCallback? onPressed,
  9. required dynamic onChanged(
    1. double
    ),
  10. Map<String, dynamic>? extraInfo,
})

Slider Settings Cell This generates a slider cell with an optional icon/image, title, subtitle, value (used to set the initial value of the slider) and accessory

  • initialStates a set of the current states this cell is in (pressed, selected, disabled, etc)
  • title main text description
  • subtitle secondary text description
  • value current value for this setting/cell
  • leadingWidget an optional leading image/icon
  • accessoryType can indicate if a disclosure arrow, checkmark, or other symbol should be on the trailing side of cell
  • onChanged callback method called when the value of the slider changes
  • extraInfo a map where you can pass additional info through to your subclasses to be used however you need

Implementation

SliderSettingsCell({Key? key, Set<MaterialState>? initialStates, this.title = '', this.subtitle = '', this.value = 0.0, this.leadingWidget, this.accessoryType = AccessoryType.None, VoidCallback? onPressed, required this.onChanged, Map<String, dynamic>? extraInfo})
    : super(key: key, initialStates: initialStates, onPressed: onPressed, extraInfo: extraInfo);