Pattern: Missing use of ??=
Issue: -
As Dart has the ??=
operator, it is advisable to use it where applicable to improve the brevity of your code.
Example of incorrect code:
String get fullName {
if (_fullName == null) {
_fullName = getFullUserName(this);
}
return _fullName;
}
Example of correct code:
String get fullName {
return _fullName ??= getFullUserName(this);;
}