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]!=null ? googleFontsDetails[fontFamily]!["subsets"]!.split(",") :
<String>[],
category = googleFontsDetails[fontFamily]!=null ? googleFontsDetails[fontFamily]!["category"]!
: 'serif';