kt_dart 0.7.0-dev.2 kt_dart: ^0.7.0-dev.2 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
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
kt_dart: ^0.7.0-dev.2
Alternatively, your editor might support dart 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/ranges.dart';