buildContents method
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, {Set<MaterialState>? materialStates}) {
materialStates ??= <MaterialState>{};
var skinDelegate = SettingsSkin.of(context)?.delegate ?? DefaultSkin();
return skinDelegate.switchContent(context, materialStates: materialStates, title: title, subtitle: subtitle, value: value, leadingWidget: leadingWidget, accessoryType: accessoryType, onChanged: onChanged, extraInfo: extraInfo);
}