kart 1.0.9 copy "kart: ^1.0.9" to clipboard
kart: ^1.0.9 copied to clipboard

Taste and smell dart a little like Kotlin. We can feel magic of Kotin even in dart.

Collection of extensions #

Dart is good but can be better.

Kotlin Style #

Join QQ Group now: 1003811176

For objects:

  • let
  • run
  • also
  • takeIf
  • takeUnless

For strings:

  • isBlank()
  • isNotBlank()
  • isNullOrBlank()
  • orEmpty()

For iterable

  • firstOrNull()
  • lastOrNull()
  • lastIndex
  • getOrElse(int,defaultValue)
  • getOrNull(int)
  • mapIndexed(int,element)
  • mapNotNull(element)
  • firstOrNullIf(predicate)
  • lastOrNullIf(predicate)
  • forEachIndexed(index,element)
  • joinToString

For List

  • firstOrNullIf(predicate)
  • lastOrNullIf(predicate)

For map

  • getOrElse(key,defaultValue)

Other #

Pair<F,S>

3
likes
150
points
85
downloads

Publisher

verified publisheropenflutter.dev

Weekly Downloads

Taste and smell dart a little like Kotlin. We can feel magic of Kotin even in dart.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

More

Packages that depend on kart