data property

T? get data

Gets the data from the current async state.

Returns the data for AsyncSuccess state, null for AsyncLoading and AsyncError states.

Example:

final data = signal.data; // null if loading or error

Implementation

T? get data;