Skip to content

OpenFlutter/kart

Repository files navigation

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>

About

A kotlin-style extension collection for dart.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages