buttonTheme property
ButtonThemeData
buttonTheme
Returns the button theme data from the closest material.ButtonTheme ancestor.
context.buttonTheme
is equivalent to material.ButtonTheme.of.
Implementation
material.ButtonThemeData get buttonTheme {
return material.ButtonTheme.of(this);
}