Typeface.parse constructor
Typeface.parse(
- String source
Retrieve Typeface instance form source
. If source
is not valid, Typeface.redmond is returned.
const typeface = Typeface.parse(source)
Implementation
factory Typeface.parse(String source) {
//...
return Typeface.fromJson(PresetValue.parse<Typeface>(source));
}