isOffset property

bool isOffset

Whether this value is an Offset.

Implementation

bool get isOffset {
  final parts = value.split(',');
  return parts.length == 2 &&
      parts.every((part) => num.tryParse(part) != null);
}