mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-02 12:14:09 +01:00
This reverts commit e6b4b08c24.
This commit is contained in:
@@ -1,14 +1,8 @@
|
||||
import 'package:cake_wallet/core/seed_validator.dart';
|
||||
import 'package:cw_core/wallet_type.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
|
||||
extension Compare<T> on Comparable<T> {
|
||||
bool operator <=(T other) => compareTo(other) <= 0;
|
||||
bool operator >=(T other) => compareTo(other) >= 0;
|
||||
bool operator <(T other) => compareTo(other) < 0;
|
||||
bool operator >(T other) => compareTo(other) > 0;
|
||||
}
|
||||
|
||||
class Annotation implements Comparable<Annotation> {
|
||||
class Annotation extends Comparable<Annotation> {
|
||||
Annotation({required this.range, required this.style});
|
||||
|
||||
final TextRange range;
|
||||
@@ -18,7 +12,7 @@ class Annotation implements Comparable<Annotation> {
|
||||
int compareTo(Annotation other) => range.start.compareTo(other.range.start);
|
||||
}
|
||||
|
||||
class TextAnnotation implements Comparable<TextAnnotation> {
|
||||
class TextAnnotation extends Comparable<TextAnnotation> {
|
||||
TextAnnotation({required this.text, required this.style});
|
||||
|
||||
final TextStyle style;
|
||||
|
||||
Reference in New Issue
Block a user