flat 0.3.0-nullsafety.0 copy "flat: ^0.3.0-nullsafety.0" to clipboard
flat: ^0.3.0-nullsafety.0 copied to clipboard

outdated

A simple, no dependency 🚀 way to take a nested Map and flatten it into a single depth Map. Based on Node.js `flat` package.

example/main.dart

import 'package:flat/flat.dart';

// ignore_for_file: avoid_print

void main() {
  final flat = flatten({
    "a": 1,
    "b": {"c": 2}
  });
  print(flat);
}
12
likes
0
pub points
85%
popularity

Publisher

unverified uploader

A simple, no dependency 🚀 way to take a nested Map and flatten it into a single depth Map. Based on Node.js `flat` package.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on flat