INNER CODE UNIT · Dart

_TextRange

fluttercandies/extended_text · lib/src/extended/text_overflow_mixin.dart:1308

class _TextRange {
  _TextRange(this.start, this.end) : assert(start <= end);
  int start;
  int end;

  bool contains(int value) {
    return start <= value && value <= end;
  }

  int get length => (end - start) + 1;

  _TextRange copyWith({int? start, int? end}) => _TextRange(
        start ?? this.start,
        end ?? this.end,
      );

  @override
  int get hashCode => Object.hash(start, end);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…