getBackgroundColor method Null safety
- BuildContext context
Implementation
MaterialStateProperty<Color?>? getBackgroundColor(BuildContext context) {
return MaterialStateProperty.resolveWith((states) =>
buttonColor ??
_getMaterialStyle(context)?.backgroundColor?.resolve(states));
}