revision property

int? get revision

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)!);
}