OpenTypeFeature class final

An OpenType feature setting: a four-character tag and its value (1 on, 0 off, n an alternate). JSON is a string, "lnum" or "liga=0".

Annotations
  • @immutable

Constructors

OpenTypeFeature(String tag, [int value = 1])
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tag → String
final
value → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
As stored: "lnum" when on, else "liga=0".
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

resolve(Iterable<String> entries) → List<OpenTypeFeature>
The settings a style's TextStyle.fontFeatures list holds, one per tag (the last wins), in order of first appearance.
tryParse(Object? entry) → OpenTypeFeature?
One setting from "lnum", "liga = 0" or {"tag": "liga", "value": 0} (true/false are 1/0), or null when it isn't one.