Line data Source code
1 : import 'package:meta/meta.dart';
2 :
3 : /// {@template model_1}
4 : /// A fake model 1.
5 : /// {@endtemplate}
6 : @immutable
7 : class Model1 {
8 : /// {@macro model_1}
9 1 : const Model1({
10 : required this.stringValue,
11 : });
12 :
13 : /// A fake string value.
14 : final String stringValue;
15 :
16 0 : @override
17 : bool operator ==(Object other) {
18 : if (identical(this, other)) return true;
19 :
20 0 : return other is Model1 && other.stringValue == stringValue;
21 : }
22 :
23 0 : @override
24 0 : int get hashCode => stringValue.hashCode;
25 : }
|