from static method

CSSURL? from(
  1. Object? url
)
override

Implementation

static CSSURL? from(Object? url) {
  if (url == null) return null;

  if (url is CSSURL) {
    return url;
  } else if (url is String) {
    return CSSURL.parse(url);
  }

  return null;
}