DwFakeHandler<C> typedef
DwFakeHandler<C> =
FutureOr<DwCallResult<Object?> > Function(C call, DwFakeCall context)
A handler of the fake server: the outcome of one call.
The value of a DwCallOk must have the call's result type exactly —
DwCallOk(<RoomView>[]), not DwCallOk([]) — because it is encoded by the
call's class, as on a real server. Throwing DwRefusalException refuses;
throwing anything else fails the call and is recorded in
DwFakeServer.errors.
Implementation
typedef DwFakeHandler<C> =
FutureOr<DwCallResult<Object?>> Function(C call, DwFakeCall context);