mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #2842 from Hixie/icondata-tostring
prettier IconData toString
This commit is contained in:
commit
e6cffd2897
@ -18,7 +18,7 @@ class IconData {
|
||||
int get hashCode => codePoint.hashCode;
|
||||
|
||||
@override
|
||||
String toString() => 'IconData(codePoint: $codePoint)';
|
||||
String toString() => 'IconData(U+${codePoint.toRadixString(16).toUpperCase().padLeft(5, '0')})';
|
||||
}
|
||||
|
||||
/// Identifiers for the supported material design icons.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user