string property
String
get
string
Implementation
String get string {
return "$major.$minor";
}
set
string
(String string)
Implementation
set string(String string) {
var versions = string.split('.');
if (versions.length != 2) {
throw "Format of version string must be major.minor, got $string";
}
value = (int.parse(versions[0]) << 4) + int.parse(versions[1]);
}