extended_type 2.1.0 copy "extended_type: ^2.1.0" to clipboard
extended_type: ^2.1.0 copied to clipboard

Collection of platform agnostic types that can be converted from/to JSON and used in databases and UI.

Extended_Type #

pub package Null Safety Dart CI GitHub Tag New Commits Last Commits Pull Requests Code size License

Collection of platform agnostic types that can be converted from/to JSON and used in databases and UI.

Usage #

A simple usage example:

import 'package:extended_type/extended_type.dart';

main() {

  // URL Type:

  var etURL = ETURL('http://www.google.com/');

  // Automatic format identification:

  ETURL etURL2 = ExtendedType.from('http://www.google.com/')! ;

  // Data-URL-Base64 type:
  
  var etDataUrl = ETDataBase64URL.parse('data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7')! ;
      
  print( etDataUrl.mimeType ); // Outputs: image/gif
  print( etDataUrl.dataLength ); // Outputs: 216

}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Colossus.Services #

This is an open-source project from Colossus.Services: the gateway for smooth solutions.

Author #

Graciliano M. Passos: gmpassos@GitHub.

License #

[Apache License - Version 2.0][apache_license]

1
likes
150
pub points
75%
popularity

Publisher

unverified uploader

Collection of platform agnostic types that can be converted from/to JSON and used in databases and UI.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

swiss_knife

More

Packages that depend on extended_type