datatools 0.4.0-nullsafety.0 copy "datatools: ^0.4.0-nullsafety.0" to clipboard
datatools: ^0.4.0-nullsafety.0 copied to clipboard

outdated

A library for Dart with metadata structures and utilities to access Web APIs and other data sources.

example/datatools_example.dart

// Copyright (c) 2020-2021 Navibyte (https://navibyte.com). All rights reserved.
// Use of this source code is governed by a “BSD-3-Clause”-style license that is
// specified in the LICENSE file.
//
// Docs: https://github.com/navibyte/geospatial

import 'package:equatable/equatable.dart';

import 'package:datatools/datatools.dart';

/*
To test run this from command line: 

dart example/datatools_example.dart
*/

void main() {
  // configure Equatable to apply toString() default impls
  EquatableConfig.stringify = true;

  // call simple demos
  _metadataStructures();
}

void _metadataStructures() {
  print('');
  print('Create some basic metadata structures.');

  // Link
  print(Link(
    href: 'http://example.com',
    rel: 'alternate',
    type: 'application/json',
    title: 'Other content',
  ));

  // todo : more examples ....
}
3
likes
0
pub points
28%
popularity

Publisher

verified publishernavibyte.com

A library for Dart with metadata structures and utilities to access Web APIs and other data sources.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

equatable, http, http_parser, meta

More

Packages that depend on datatools