mno_commons 0.1.2 mno_commons: ^0.1.2 copied to clipboard
This package provide utilities (JSON, io, Href, UriTemplate, etc...) for other mno_xxx packages.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add mno_commons
With Flutter:
$ flutter pub add mno_commons
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
mno_commons: ^0.1.2
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:mno_commons/extensions/data.dart';
import 'package:mno_commons/extensions/files.dart';
import 'package:mno_commons/extensions/strings.dart';
import 'package:mno_commons/extensions/uri.dart';
import 'package:mno_commons/io.dart';
import 'package:mno_commons/io/file_not_found_exception.dart';
import 'package:mno_commons/utils/exceptions.dart';
import 'package:mno_commons/utils/file_utils.dart';
import 'package:mno_commons/utils/href.dart';
import 'package:mno_commons/utils/jsonable.dart';
import 'package:mno_commons/utils/ref.dart';
import 'package:mno_commons/utils/take.dart';
import 'package:mno_commons/utils/try.dart';
import 'package:mno_commons/utils/uri_template.dart';