isPending method
Checks if the snapshot is pending (waiting or none state).
Returns true if the snapshot is in waiting or none state.
Implementation
bool isPending() =>
connectionState == ConnectionState.waiting ||
connectionState == ConnectionState.none;