GetFontCallbackDetails constructor

GetFontCallbackDetails({
  1. required String fontId,
  2. required LevelOfControl levelOfControl,
})

Implementation

GetFontCallbackDetails({
  /// The font ID. Rather than the literal font ID preference value, this may
  /// be the ID of the font that the system resolves the preference value to.
  /// So, [fontId] can differ from the font passed to `setFont`, if, for
  /// example, the font is not available on the system. The empty string
  /// signifies fallback to the global script font setting.
  required String fontId,

  /// The level of control this extension has over the setting.
  required LevelOfControl levelOfControl,
}) : _wrapped = $js.GetFontCallbackDetails(
        fontId: fontId,
        levelOfControl: levelOfControl.toJS,
      );