From e0c9e3a94fee07a796954ff3e95f7f61da7c85d7 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Sat, 13 Feb 2016 16:53:59 -0800 Subject: [PATCH] Add a toString to ui.Image Fixes #1866 --- sky/engine/core/dart/painting.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sky/engine/core/dart/painting.dart b/sky/engine/core/dart/painting.dart index 79c1c8bec28..c5a3177d951 100644 --- a/sky/engine/core/dart/painting.dart +++ b/sky/engine/core/dart/painting.dart @@ -9,6 +9,8 @@ abstract class Image extends NativeFieldWrapperClass2 { int get height native "Image_height"; void dispose() native "Image_dispose"; + + String toString() => '[$width\u00D7$height]'; } typedef void _ImageDecoderCallback(Image result);