at_app 0.1.2 copy "at_app: ^0.1.2" to clipboard
at_app: ^0.1.2 copied to clipboard

outdated

A command line tool to help developers build an @ platform application.

example/example.md

Examples #

Using AtEnv #

Loading the environment

AtEnv.load();

Get the root domain

var rootDomain = AtEnv.rootDomain;

Get the app namespace

var namespace = AtEnv.appNamespace;

Get the app api key

var apiKey = AtEnv.appApiKey;

Using AtContext #

Get the AtContext instance from the BuildContext #

AtContext atContext = AtContext.of(context);

Using the AtContext instance #

Get the AtClientService

AtClientService atClientService = atContext.atClientService;

Get the AtClientInstance

AtClientImpl? atClientInstance = atContext.atClient;

Get the Currently Onboarded AtSign

String? currentAtSign = atContext.currentAtSign;

Get the AtClientPreference

AtClientPreference atClientPreference = atContext.atClientPreference;

Onboard with another Atsign

atContext.switchAtsign("@example");
159
likes
0
pub points
0%
popularity

Publisher

verified publisheratsign.org

A command line tool to help developers build an @ platform application.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

at_client_mobile, at_onboarding_flutter, at_utils, dotenv, flutter, flutter_tools, path_provider, version

More

Packages that depend on at_app