themeStyleOf method

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

Returns the ButtonStyle that belongs to the button's component theme.

The returned style can be overridden by the style parameter.

Concrete button subclasses should return the ButtonStyle for the nearest subclass-specific inherited theme, and if no such theme exists, then the same value from the overall Theme.

See also:

Implementation

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