This class is used as a utility for testing.
Concrete implementations - like MockHTTPServer - are used to validate messages send to remote servers during testing. This allows your tests to verify any messages sent as a side-effect of an endpoint. You should be sure to close instances of this class during tearDown functions.
T value) → void
- Adds an event to this server.
) → void
) → Future?
- Concrete implementations override this method to close an event listener.
) → Future< T>
- Returns an event that has been added to this server. [...]
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → Future
- Concrete implementations override this method to open an event listener.
) → String
A string representation of this object. [...]