resolveOpacity static method

double? resolveOpacity(
  1. String value
)

Implementation

static double? resolveOpacity(String value) {
  return CSSStyleDeclaration.isNullOrEmptyValue(value) ? 1.0 : CSSLength.toDouble(value);
}