fields property

  1. @override
List<Field> get fields
override

Implementation

@override
List<Field> get fields {
  return [
    ListField<ThemeData>(
      name: 'name',
      values: themes.values.toList(),
      initialValue: themes.values.first,
      labelBuilder: (theme) => themes.keys.firstWhere(
        (key) => themes[key] == theme,
      ),
    ),
  ];
}