AtsExit class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
- AtsExit({String? id, int? identifier, String? fromAssetId, Asset? fromAsset, String? toAssetId, Asset? toAsset, double? errorPercent, double? totalLiters, double? toAssetMileage, @TimestampOrNullConverter() DateTime? startAt, @TimestampOrNullConverter() DateTime? endAt, String? totalTime, @DurationOrNullConverter() Duration? totalTimeDuration, double? initialFluxometer, double? finalFluxometer, double? initialTankVolume, double? finalTankVolume, double? price, String? attendantName, String? attendantId})
-
constfactory
-
AtsExit.fromJson(Map<
String, dynamic> json) -
factory
Properties
- attendantId → String?
-
attendantIdis the attendant id.no setterinherited - attendantName → String?
-
attendantNameis the attendant name.no setterinherited -
copyWith
→ $AtsExitCopyWith<
AtsExit> -
Create a copy of AtsExit
with the given fields replaced by the non-null parameter values.
no setterinherited
- endAt → DateTime?
-
endAtis the end exit date.no setterinherited - errorPercent → double?
-
errorPercentis the errror percent between reception and sensor entry.no setterinherited - finalFluxometer → double?
-
finalFluxometeris the final fluxometer of the day.no setterinherited - finalTankVolume → double?
-
finalTankVolumeis the final tank volume of the day.no setterinherited - fromAsset → Asset?
-
fromAssetis the id Asset kind pump to generate the exit.no setterinherited - fromAssetId → String?
-
fromAssetIdis the Asset kind pump to generate the exit.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
idof the volume. This ID is unique.no setterinherited - identifier → int?
-
identifieris the exit identifier.no setterinherited - initialFluxometer → double?
-
initialFluxometeris the initial fluxometer of the day.no setterinherited - initialTankVolume → double?
-
initialTankVolumeis the initial tank volume of the day.no setterinherited - price → double?
-
priceis the unit price per liter of exit.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startAt → DateTime?
-
startAtis the start exit date.no setterinherited - toAsset → Asset?
-
toAssetis the Asset that receive the fuel (Receive the exit).no setterinherited - toAssetId → String?
-
toAssetIdis the id Asset that receive the fuel (Receive the exit).no setterinherited - toAssetMileage → double?
-
toAssetMileageis the Odometer of the asset mileage registered.no setterinherited - totalLiters → double?
-
totalLitersis the total liters of the exit.no setterinherited - totalTime → String?
-
totalTimeis the total exit time.no setterinherited - totalTimeDuration → Duration?
-
totalTimeDurationis the duration in seconds of the exit.no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_AtsExit value)) → TResult -
Available on AtsExit, provided by the AtsExitPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_AtsExit value)?) → TResult? -
Available on AtsExit, provided by the AtsExitPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_AtsExit value)?, {required TResult orElse()}) → TResult -
Available on AtsExit, provided by the AtsExitPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String? id, int? identifier, String? fromAssetId, Asset? fromAsset, String? toAssetId, Asset? toAsset, double? errorPercent, double? totalLiters, double? toAssetMileage, DateTime? startAt, DateTime? endAt, String? totalTime, Duration? totalTimeDuration, double? initialFluxometer, double? finalFluxometer, double? initialTankVolume, double? finalTankVolume, double? price, String? attendantName, String? attendantId)?, {required TResult orElse()}) → TResult -
Available on AtsExit, provided by the AtsExitPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this AtsExit to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String? id, int? identifier, String? fromAssetId, Asset? fromAsset, String? toAssetId, Asset? toAsset, double? errorPercent, double? totalLiters, double? toAssetMileage, DateTime? startAt, DateTime? endAt, String? totalTime, Duration? totalTimeDuration, double? initialFluxometer, double? finalFluxometer, double? initialTankVolume, double? finalTankVolume, double? price, String? attendantName, String? attendantId)) → TResult -
Available on AtsExit, provided by the AtsExitPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? id, int? identifier, String? fromAssetId, Asset? fromAsset, String? toAssetId, Asset? toAsset, double? errorPercent, double? totalLiters, double? toAssetMileage, DateTime? startAt, DateTime? endAt, String? totalTime, Duration? totalTimeDuration, double? initialFluxometer, double? finalFluxometer, double? initialTankVolume, double? finalTankVolume, double? price, String? attendantName, String? attendantId)?) → TResult? -
Available on AtsExit, provided by the AtsExitPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited