buttonContent abstract method
Widget
buttonContent(
- BuildContext context, {
- Key? key,
- Set<
MaterialState> ? materialStates, - ButtonType type = ButtonType.Normal,
- String title = '',
- String subtitle = '',
- Widget? leadingWidget,
- AccessoryType accessoryType = AccessoryType.None,
- Map<
String, dynamic> ? extraInfo,
Button Content This generates the internal contents of a button cell with an optional icon/image, title, subtitle, and accessory Note: the callback to handle the button press is handled in the main settings cell, so it isn't passed down to this content method
context
the current BuildContextmaterialStates
a set of the current states this cell is in (pressed, selected, disabled, etc)type
a button type (Normal, Cancel, Destructive, or Custom)title
main text descriptionsubtitle
secondary text descriptionleadingWidget
an optional leading image/iconaccessoryType
can indicate if a disclosure arrow, checkmark, or other symbol should be on the trailing side of cellextraInfo
a map where you can pass additional info through to your subclasses to be used however you need
Implementation
Widget buttonContent(BuildContext context, {Key? key, Set<MaterialState>? materialStates, ButtonType type = ButtonType.Normal, String title = '', String subtitle = '', Widget? leadingWidget, AccessoryType accessoryType = AccessoryType.None, Map<String, dynamic>? extraInfo});