color property

Color get color

Gets the Button Color value associated with ENUM

Implementation

Color get color {
  switch (this) {
    case SnapchatButtonColors.YELLOW:
      return const Color.fromRGBO(255, 252, 0, 1);
    case SnapchatButtonColors.BLACK:
      return const Color.fromRGBO(0, 0, 0, 1);
    case SnapchatButtonColors.WHITE:
      return const Color.fromRGBO(255, 255, 255, 1);
    case SnapchatButtonColors.GRAY:
      return const Color.fromRGBO(244, 244, 244, 1);
  }
}