fromJS static method

Color fromJS(
  1. String value
)

Implementation

static Color fromJS(String value) =>
    values.firstWhere((e) => e.value == value);