PickerFont constructor

PickerFont({
  1. required String fontFamily,
  2. FontWeight fontWeight = FontWeight.w400,
  3. FontStyle fontStyle = FontStyle.normal,
  4. 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"]!;