when<TResult extends Object?> method

TResult when<TResult extends Object?>(
  1. TResult callback(
    1. String isbn13,
    2. DateTime updatedAt
    )
)

Destructure the entry using the original two-field callback. Access status directly for the kind of update.

Implementation

TResult when<TResult extends Object?>(
  TResult Function(String isbn13, DateTime updatedAt) callback,
) => callback(isbn13, updatedAt);