getBtnType method

Color getBtnType()

Returns the button color based on its type. If the type is BtnType.outline, BtnType.outline2x, or BtnType.transparent, returns Colors.transparent. Otherwise, returns FxColor.primary.

Implementation

Color getBtnType() {
  if (BtnType.outline == type ||
      BtnType.outline2x == type ||
      BtnType.transparent == type) {
    return Colors.transparent;
  }
  return FxColor.primary;
}