FLUTTER ECOSYSTEM

kt_dart

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.

Latest version
1.1.0
30-day downloads
7.6K
Likes
170
Pub points
140

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

kt_dart is a Dart port of Kotlin's standard library, bringing Kotlin-like collections (KtList, KtMap, KtSet) with over 150 extension methods to Dart and Flutter projects. It enhances functional programming capabilities with concise, expressive syntax for list, map, and set operations. The package supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform development. It aims to improve code readability and reduce boilerplate by mirroring Kotlin’s rich collection API.

Use cases
  • Functional programming in Dart
  • Simplifying collection transformations
  • Writing Kotlin-style Dart code
  • Cross-platform app development
  • Reducing boilerplate in data manipulation
  • Enhancing code readability
Key features
  • 150+ collection extension methods
  • Kotlin-style KtList, KtMap, KtSet
  • Cross-platform support
  • Fluent and expressive syntax
  • Minimal dependencies
  • Seamless integration with Flutter
Suitable for
  • Dart developers familiar with Kotlin
  • Projects emphasizing functional programming
  • Teams seeking cleaner collection handling
  • Flutter apps requiring robust data operations
  • Developers wanting Kotlin-like syntax in Dart
Considerations
  • Learning curve for new users
  • Potential performance overhead from abstractions
  • Not a full Kotlin replacement
  • Limited documentation compared to Kotlin
  • May increase bundle size slightly
  • Requires careful migration in large codebases
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add kt_dart

Categories

Dependencies

Dependency list 1 items

Source repository

Related projects