from static method

CSSBackground? from(
  1. Object? value
)
override

Implementation

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

  if (value is CSSBackground) return value;

  if (value is String) return CSSBackground.parse(value);

  return null;
}