invoke

operator fun invoke(cargo: Cargo): Flow<Resource<String>>

Invokes the use case to insert a new cargo into the local database.

Return

A Flow emitting Resource states containing the cargo number or an error.

Parameters

cargo

The Cargo object representing the cargo to be inserted.