toEmit method

Future<CartInitialised> toEmit(
  1. LoggedIn accessState
)

Implementation

Future<CartInitialised> toEmit(LoggedIn accessState) async {
  var member = accessState.member;
  var cart = await memberCartRepository(appId: appId)!.get(member.documentID);
  return CartInitialised(cart?.cartItems);
}