Characters docs (#67361)
This commit is contained in:
committed by
GitHub
parent
b5562c1b19
commit
896c19a292
@@ -14,7 +14,7 @@ const String _kGalleryAssetsPackage = 'flutter_gallery_assets';
|
||||
class _Page {
|
||||
_Page({ this.label });
|
||||
final String label;
|
||||
String get id => label[0];
|
||||
String get id => label.characters.first;
|
||||
@override
|
||||
String toString() => '$runtimeType("$label")';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user