from static method

CSSGeneric? from(
  1. Object? value
)
override

Implementation

static CSSGeneric? from(Object? value) {
  if (value == null) return null;

  if (value is CSSGeneric) return value;

  if (value is String) {
    return CSSGeneric.parse(value);
  }

  return null;
}