Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Use EnumName.name #566

Merged
merged 2 commits into from
Dec 10, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions lib/data/demos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import 'dart:collection';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart' show describeEnum;
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations.dart';
import 'package:flutter_gen/gen_l10n/gallery_localizations_en.dart'
Expand Down Expand Up @@ -46,8 +45,6 @@ enum GalleryDemoCategory {
}

extension GalleryDemoExtension on GalleryDemoCategory {
String get name => describeEnum(this);

String displayTitle(GalleryLocalizations localizations) {
switch (this) {
case GalleryDemoCategory.material:
Expand Down