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,
    fontFamily: 'Source Sans Pro',
    fontWeight: FontWeight.w600,
    textColor: TextColor(
      darkMode ? Colors.white : Colors.black,
      onSecondaryButton: Colors.white,
    ),
  );
}