getFont method

FlutlyFont getFont(
  1. String key
)

Implementation

FlutlyFont getFont(String key) {
  return fonts.firstWhere(
      (element) => key.toLowerCase().contains(element.key.toLowerCase()),
      orElse: () => _getDefaultFont());
}