FontFace constructor

FontFace(
  1. String family,
  2. Object source,
  3. [Map? descriptors]
)

Implementation

factory FontFace(String family, Object source, [Map? descriptors]) {
  if (descriptors != null) {
    var descriptors_1 = convertDartToNative_Dictionary(descriptors);
    return FontFace._create_1(family, source, descriptors_1);
  }
  return FontFace._create_2(family, source);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/FontFace/FontFace.html