buildContents method
Widget
buildContents(
- BuildContext context, {
- Key? key,
- Set<
MaterialState> ? materialStates,
override
buildContents() is called by the parent's state build() method
- treat this like the build() call of a normal StatelessWidget, but with the additional
materialStates
object that can be used for customization
Implementation
@override
Widget buildContents(BuildContext context, {Key? key, Set<MaterialState>? materialStates}) {
materialStates ??= <MaterialState>{};
var skinDelegate = SettingsSkin.of(context)?.delegate ?? DefaultSkin();
return skinDelegate.buttonContent(context, key: key, type: type, materialStates: materialStates, title: title, subtitle: subtitle, leadingWidget: leadingWidget, accessoryType: accessoryType, extraInfo: extraInfo);
}