Line data Source code
1 : import 'package:dio/dio.dart'; 2 : 3 : class ListParam<T> { 4 : final ListFormat format; 5 : List<T> value; 6 : 7 1 : ListParam(this.value, this.format); 8 : 9 0 : @override 10 : String toString() { 11 0 : return 'ListParam{format: $format, value: $value}'; 12 : } 13 : 14 0 : @override 15 : bool operator ==(Object other) => 16 : identical(this, other) || 17 0 : other is ListParam && 18 0 : runtimeType == other.runtimeType && 19 0 : format == other.format && 20 0 : value == other.value; 21 : 22 0 : @override 23 0 : int get hashCode => format.hashCode ^ value.hashCode; 24 : }