part 'ReminderArgs.g.dart';
@DataClass()
class ReminderArgs {
@nullable String assetId;
@nullable Reminder reminder;
bool showAsset = false;
}
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'ReminderArgs.dart';
// **************************************************************************
// DataClassGenerator
// **************************************************************************
/// This class is the immutable pendant of the MutablerArgs class.
@immutable
class rArgs {
final String assetId;
final Reminder reminder;
final bool showAsset;
/// Default constructor that creates a rArgs.
const rArgs({
this.assetId,
this.reminder,
@required this.showAsset,
}) : assert(showAsset != null);
/// Creates a rArgs from a MutablerArgs.
factory rArgs.fromMutable(MutablerArgs mutable) {
return rArgs(
assetId: mutable.assetId,
reminder: mutable.reminder,
showAsset: mutable.showAsset,
);
}
/// Turns this rArgs into a MutablerArgs.
MutablerArgs toMutable() {
return MutablerArgs()
..assetId = assetId
..reminder = reminder
..showAsset = showAsset;
}
/// Checks if this rArgs is equal to the other one.
bool operator ==(Object other) {
return other is rArgs &&
assetId == other.assetId &&
reminder == other.reminder &&
showAsset == other.showAsset;
}
int get hashCode => hashList([
assetId,
reminder,
showAsset,
]);
rArgs copyWith({
String assetId,
Reminder reminder,
bool showAsset,
}) {
return rArgs(
assetId: assetId ?? this.assetId,
reminder: reminder ?? this.reminder,
showAsset: showAsset ?? this.showAsset,
);
}
String toString() {
return 'rArgs\n'
' assetId: $assetId\n'
' reminder: $reminder\n'
' showAsset: $showAsset\n'
')';
}
}