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