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 = [];