themeStyleOf method Null safety

  1. @override
ButtonStyle? themeStyleOf(
  1. BuildContext context
)
override

Returns the ElevatedButtonThemeData.style of the closest ElevatedButtonTheme ancestor.

Implementation

@override
ButtonStyle? themeStyleOf(BuildContext context) {
  return ElevatedButtonTheme.of(context).style;
}