from static method

CSSBackgroundImage? from(
  1. Object? value
)

Implementation

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

  if (value is CSSBackgroundImage) return value;

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

  return null;
}