getTextStyle method

  1. @override
TextStyle getTextStyle()

getTextStyle() a method which returns the textStyle.

For more info about textStyle take a look on textStyle

Implementation

@override
TextStyle getTextStyle() {
  return resolvedTextStyle(
    buttonType: style!.buttonType,
    iconType: style!.iconType,
    enabled: enabled,
    fontWeight: FontWeight.bold,
    textColor: TextColor(
      Colors.white,
      onSecondaryIcon: darkMode ? Colors.white : Colors.blue[800],
    ),
  );
}