toggleFont method

Future<void> toggleFont()

Implementation

Future<void> toggleFont() async {
  _currentIndex = (_currentIndex + 1) % _fonts.length;
  await _saveFont(_currentIndex);
  state = _fonts[_currentIndex];
}