revision property
Gets the revision number, or null if not specified.
Implementation
int? get revision {
final match = RegExp(r'\?r=(\d+)').firstMatch(uri);
if (match == null) return null;
return int.tryParse(match.group(1)!);
}
Gets the revision number, or null if not specified.
int? get revision {
final match = RegExp(r'\?r=(\d+)').firstMatch(uri);
if (match == null) return null;
return int.tryParse(match.group(1)!);
}