getFontList method

List<DropdownMenuItem<int>> getFontList()

Implementation

List<DropdownMenuItem<int>> getFontList() =>
    List.generate(
      generateFontLength,
      (index) => DropdownMenuItem<int>(
        value: index,
        child: Text(
          '$index',
          style: fontTextStyle ?? TextStyle(fontSize: 19),
        ),
      ),
    ).where((i) => i.value! >= generateStartFont).toList();