Characters docs (#67361)

This commit is contained in:
Justin McCandless
2020-10-06 17:02:04 -07:00
committed by GitHub
parent b5562c1b19
commit 896c19a292
7 changed files with 55 additions and 4 deletions

View File

@@ -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")';
}