SDKPublishFont class
Represents a single variation of a common font.
- Inheritance
-
- Object
- PrivacyBase
- SDKPublishFont
- Annotations
-
- @JsonSerializable()
Constructors
-
SDKPublishFont({String? id, required String url, required String family, required String weight, String? style, required Set<
String> ? teams, required Set<String> ? users, required Map<String, Role> roles, required bool? public}) -
Creates a new instance of SDKPublishFont.
const
-
SDKPublishFont.fromJson(Map<
String, dynamic> json) -
Creates a new instance of SDKPublishFont from a JSON map.
factory
- SDKPublishFont.private({String? id, required String url, required String family, required String weight, String? style, required PrivacyBase privacy})
- Creates a new instance of SDKPublishFont with privacy inherited from another PrivacyBase.
Properties
-
editors
→ List<
String> -
A list of user ids that are editors of this object.
no setterinherited
- family → String
-
The font's common family name.
final
- fullFontName → String
-
Returns the font's full name, decoded from the id.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The font's unique id. To keep this unique but seeded, we generate
the id by base64 encoding the font's full name.
final
-
owners
→ Set<
String> -
An owner ID must always exist in the roles map. It's an error
if it doesn't.
no setterinherited
- privacy → PrivacyBaseImpl
-
While this PrivacyBase object is extended by other models, calling
toJson on those models will return data in addition to these core
privacy properties.
no setterinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- public → bool
-
Whether the object is public or not. If it is public, then
it is accessible to read by anyone on the platform.
finalinherited
-
roles
→ Map<
String, Role> -
The roles of each user from the users set.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - style → String?
-
The font's style. (italics)
final
-
teams
→ Set<
String> -
The list of teams associated with a particular document.
finalinherited
- url → String
-
The font's url to download the font file from.
final
-
users
→ Set<
String> -
A set of user ids that are allowed to access the project in some way
defined by the roles map.
finalinherited
-
viewers
→ List<
String> -
A list of user ids that are viewers of this object.
no setterinherited
- weight → String
-
The font's weight. (bold)
final
Methods
-
copyWith(
{String? id, String? url, String? family, String? weight, String? style, PrivacyBase? privacy}) → SDKPublishFont - Creates a copy of this instance with the provided parameters.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited