MasonApi class
API client for the package:mason_cli.
Constructors
- MasonApi({Client? httpClient, Uri? hostedUri})
- API client for the package:mason_cli.
Properties
- currentUser → User?
-
The current user.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void - Closes the client and cleans up any resources associated with it. It's important to close each client when it's done being used; failing to do so can cause the Dart process to hang.
-
login(
{required String email, required String password}) → Future< User> -
Log in with the provided
email
andpassword
. -
logout(
) → void - Log out and clear credentials.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publish(
{required List< int> bundle}) → Future<void> -
Publish universal
bundle
to remote registry. -
search(
{required String query}) → Future< Iterable< BrickSearchResult> > -
Search for bricks the with the provided
query
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited