toCSS method

String toCSS({
  1. num pixelRatio = 1,
})

Returns this font properties in CSS.

Implementation

String toCSS({num pixelRatio = 1}) =>
    _css ??= '${size / pixelRatio}px $family';