19 lines
530 B
Dart
19 lines
530 B
Dart
import 'package:flutter/foundation.dart';
|
|
|
|
/// The conversation a reading reply belongs to: [scope] is its chat id (the
|
|
/// list row's `id`, a federated id in a combined list) and [title] its name.
|
|
@immutable
|
|
class SpeechReading {
|
|
const SpeechReading({required this.scope, this.title = ''});
|
|
|
|
final String scope;
|
|
final String title;
|
|
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
other is SpeechReading && other.scope == scope && other.title == title;
|
|
|
|
@override
|
|
int get hashCode => Object.hash(scope, title);
|
|
}
|