PickerFont constructor
PickerFont({
- required String fontFamily,
- FontWeight fontWeight = FontWeight.w400,
- FontStyle fontStyle = FontStyle.normal,
- bool isRecent = false,
Implementation
PickerFont(
{required this.fontFamily,
this.fontWeight = FontWeight.w400,
this.fontStyle = FontStyle.normal,
this.isRecent = false})
: variants = parseVariants(fontFamily),
subsets = googleFontsDetails[fontFamily]!["subsets"]!.split(","),
category = googleFontsDetails[fontFamily]!["category"]!;