amplify_core 0.0.2-dev.1
amplify_core: ^0.0.2-dev.1 copied to clipboard
The base package shared across Amplify Flutter library.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add amplify_core
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
amplify_core: ^0.0.2-dev.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:amplify_core/test_utils/get_json_from_file.dart';
import 'package:amplify_core/test_utils/index.dart';
import 'package:amplify_core/types/hub/HubChannel.dart';
import 'package:amplify_core/types/hub/HubEvent.dart';
import 'package:amplify_core/types/hub/HubEventPayload.dart';
import 'package:amplify_core/types/index.dart';
import 'package:amplify_core/types/plugin/amplify_plugin_interface.dart';