domain_objects 0.0.30-nullsafety domain_objects: ^0.0.30-nullsafety copied to clipboard
Home for all shared domain objects that are common for both bewell-consumer and bewell-professional app
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add domain_objects
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
domain_objects: ^0.0.30-nullsafety
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:domain_objects/entities.dart';
import 'package:domain_objects/failures.dart';
import 'package:domain_objects/value_objects.dart';