Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 994 Bytes

README.md

File metadata and controls

55 lines (43 loc) · 994 Bytes

Dart

A utility library made with Replit!

Installation

dart pub add volt

After installing the package, import the lib/volt.dart file.

import 'package:volt/volt.dart';

Features

Detailed Pretty Printing

The String format(dynamic entity) function turns List, LinkedHashMap, and other Object types into readable strings.

class Test {
  int id = 0;
  static const original = 0;
  static void greet(String name) {
    print('Hello, $name!');
  }
}

void main() {
  print(format({ "id": 0, "items": ["app", "ban"], "test": new Test() }));
}

The console will output the text below with details like the length of the list, keys, and properties.

LinkedHashMap (3) {
  "id": 0,
  "items": List (2) [
    "app",
    "ban"
  ],
  "test": Test (4) {
    int id;
    static const final int original;
    static void greet => static void greet(String name) {
      print('Hello, $name!');
    };
    Test Test => null;
  }
}