StyleRule.fontFace constructor

const StyleRule.fontFace({
  1. required String family,
  2. FontStyle? style,
  3. required String url,
})

Renders a @font-face css rule.

The @font-face CSS at-rule specifies a custom font with which to display text; the font can be loaded from either a remote server or a locally-installed font on the user's own computer.

Implementation

const factory StyleRule.fontFace({required String family, FontStyle? style, required String url}) = FontFaceStyleRule;