Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 0bed384

Browse files
committed
Merge pull request #15 from vicb/patch-1
Using constants rather than fields
2 parents e23019b + 667034e commit 0bed384

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Chapter_03/lib/rating/rating_component.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import 'package:angular/angular.dart';
2222
*
2323
* <rating max-rating="5" rating="mycontrol.rating">
2424
*
25-
* The compnoent's public fields are available for data binding from the
25+
* The component's public fields are available for data binding from the
2626
* component's view. Similarly, the component's public methods can be
2727
* invoked from the component's view.
2828
*/
@@ -37,10 +37,10 @@ import 'package:angular/angular.dart';
3737
}
3838
)
3939
class RatingComponent {
40-
String _starOnChar = "\u2605";
41-
String _starOffChar = "\u2606";
42-
String _starOnClass = "star-on";
43-
String _starOffClass = "star-off";
40+
static const String _starOnChar = "\u2605";
41+
static const String _starOffChar = "\u2606";
42+
static const String _starOnClass = "star-on";
43+
static const String _starOffClass = "star-off";
4444

4545
List<int> stars = [];
4646

0 commit comments

Comments
 (0)