kt_dart 1.1.0 kt_dart: ^1.1.0 copied to clipboard
This project is a port of kotlin-stdlib for Dart/Flutter projects. It includes collections (KtList, KtMap, KtSet) with 150+ methods as well as other useful packages.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add kt_dart
With Flutter:
$ flutter pub add kt_dart
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
kt_dart: ^1.1.0
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:kt_dart/annotation.dart';
import 'package:kt_dart/collection.dart';
import 'package:kt_dart/exception.dart';
import 'package:kt_dart/kt.dart';
import 'package:kt_dart/standard.dart';