DetailsSettingsCell constructor
DetailsSettingsCell({
- Key? key,
- Set<
MaterialState> ? initialStates, - String title = '',
- String subtitle = '',
- String value = '',
- Widget? leadingWidget,
- AccessoryType accessoryType = AccessoryType.None,
- VoidCallback? onPressed,
- Map<
String, dynamic> ? extraInfo,
Details Settings Cell This generates a standard details cell with an optional icon/image, title, subtitle, value and accessory
context
the current BuildContextmaterialStates
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
extraInfo
a map where you can pass additional info through to your subclasses to be used however you need
Implementation
DetailsSettingsCell({Key? key, Set<MaterialState>? initialStates, this.title = '', this.subtitle = '', this.value = '', this.leadingWidget, this.accessoryType = AccessoryType.None, VoidCallback? onPressed, Map<String, dynamic>? extraInfo})
: super(key: key, initialStates: initialStates, onPressed: onPressed, extraInfo: extraInfo);