discontinuedPackage androssy_widgets has been discontinued.

typed method

T typed(
  1. StateType type
)

Implementation

T typed(StateType type) {
  switch (type) {
    case StateType.none:
      return _primary;
    case StateType.error:
      return _error;
    case StateType.selected:
      return _selected;
    case StateType.unselected:
      return _unselected;
    case StateType.focused:
      return _focused;
    case StateType.unfocused:
      return _unfocused;
    case StateType.enabled:
      return _enabled;
    case StateType.disabled:
      return _disabled;
  }
}