FontName class
Represents a font name.
class FontName extends ChromeObject {
FontName({String fontId, String displayName}) {
if (fontId != null) this.fontId = fontId;
if (displayName != null) this.displayName = displayName;
}
FontName.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
/**
* The font ID.
*/
String get fontId => jsProxy['fontId'];
set fontId(String value) => jsProxy['fontId'] = value;
/**
* The display name of the font.
*/
String get displayName => jsProxy['displayName'];
set displayName(String value) => jsProxy['displayName'] = value;
}
Extends
ChromeObject > FontName
Constructors
new FontName({String fontId, String displayName}) #
Create a new instance of a ChromeObject, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
FontName({String fontId, String displayName}) {
if (fontId != null) this.fontId = fontId;
if (displayName != null) this.displayName = displayName;
}
new FontName.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
FontName.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
String displayName #
The display name of the font.
String get displayName => jsProxy['displayName'];
set displayName(String value) => jsProxy['displayName'] = value;
String fontId #
The font ID.
String get fontId => jsProxy['fontId'];
set fontId(String value) => jsProxy['fontId'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();