sliderContent abstract method
Widget
sliderContent(
- BuildContext context, {
- Key? key,
- Set<
MaterialState> ? materialStates, - String title = '',
- String subtitle = '',
- double value = 0.0,
- Widget? leadingWidget,
- AccessoryType accessoryType = AccessoryType.None,
- required dynamic onChanged(),
- Map<
String, dynamic> ? extraInfo,
Slider Content This generates the internal contents of a slider cell with an optional icon/image, title, subtitle, value (used to set the initial value of the slider) and accessory
context
the current BuildContextmaterialStates
a set of the current states this cell is in (pressed, selected, disabled, etc)title
main text descriptionsubtitle
secondary text descriptionvalue
current value for this setting/cellleadingWidget
an optional leading image/iconaccessoryType
can indicate if a disclosure arrow, checkmark, or other symbol should be on the trailing side of cellonChanged
callback method called when the value of the slider changesextraInfo
a map where you can pass additional info through to your subclasses to be used however you need
Implementation
Widget sliderContent(BuildContext context, {Key? key, Set<MaterialState>? materialStates, String title = '', String subtitle = '', double value = 0.0, Widget? leadingWidget, AccessoryType accessoryType = AccessoryType.None, required Function(double) onChanged, Map<String, dynamic>? extraInfo});