/// One interface font option the device can choose: a bundled family /// (`AppFont`) or one the user added (`CustomFont`). abstract interface class FontChoice { /// The stored value; stable across releases and renames. String get id; /// The picker's name for the option. String get label; /// The registered family name; null keeps the platform typography. String? get family; /// Every file the family needs, as loader sources: bundle asset paths, or /// [customFontSource] keys for files the user added. List get sources; /// The one source that previews the option's name (its regular weight). String? get previewSource; } /// Loader sources naming a user-added file start with this prefix; the rest /// is the file's key in the custom font store. const String customFontSourcePrefix = 'custom-font:'; String customFontSource(String key) => '$customFontSourcePrefix$key';