From 667034e2a399e6a443317113c90f500637f1b900 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Fri, 6 Dec 2013 16:12:45 +0100 Subject: [PATCH] Using constant rather than fields --- Chapter_03/lib/rating/rating_component.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Chapter_03/lib/rating/rating_component.dart b/Chapter_03/lib/rating/rating_component.dart index 588c79e..4dc88aa 100644 --- a/Chapter_03/lib/rating/rating_component.dart +++ b/Chapter_03/lib/rating/rating_component.dart @@ -22,7 +22,7 @@ import 'package:angular/angular.dart'; * * * - * The compnoent's public fields are available for data binding from the + * The component's public fields are available for data binding from the * component's view. Similarly, the component's public methods can be * invoked from the component's view. */ @@ -37,10 +37,10 @@ import 'package:angular/angular.dart'; } ) class RatingComponent { - String _starOnChar = "\u2605"; - String _starOffChar = "\u2606"; - String _starOnClass = "star-on"; - String _starOffClass = "star-off"; + static const String _starOnChar = "\u2605"; + static const String _starOffChar = "\u2606"; + static const String _starOnClass = "star-on"; + static const String _starOffClass = "star-off"; List stars = [];