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

Commit

Permalink
Use EnumName.name (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
guidezpl authored Dec 10, 2021
1 parent 5cd49de commit e38770b
Showing 1 changed file with 0 additions and 3 deletions.
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

0 comments on commit e38770b

Please sign in to comment.