Skip to content

0.7.0-dev.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@passsy passsy released this 21 Oct 19:29
· 185 commits to master since this release

New .dart extensions to convert KtDart collections back to dart collections.

  // New: Converting dart collections to KtDart collections (mutable views)
  final KtMutableList<String> ktList = ["hey"].kt;
  final KtMutableSet<String> ktSet = {"hey"}.kt;
  final KtMutableMap<String, int> ktMap = {"hey": 1}.kt;

  // Converting KtDart collections to dart collections
  final List<String> dartList = KtList.of("hey").dart;
  final Set<String> dartSet = KtSet.of("hey").dart;
  final Map<String, int> dartMap = KtMap.from({"hey": 1}).dart;

Update

dependencies:
  kt_dart: ^0.7.0-dev.2