jetleaf_convert 1.0.0 copy "jetleaf_convert: ^1.0.0" to clipboard
jetleaf_convert: ^1.0.0 copied to clipboard

A library that provides high-level of conversion for the Jetleaf application. It powers the conversion of types to the target types based on request.

JetLeaf Convert #

A powerful type conversion library for Dart that provides high-level conversion capabilities between different data types. This package is part of the JetLeaf framework and offers a flexible and extensible way to handle type conversions in your Dart applications.

Features #

  • Type Conversion: Convert between various Dart and custom types
  • Extensible: Easily add custom converters for your types
  • Format Support: Built-in support for common data formats
  • Null Safety: Fully null-safe implementation
  • Dependency Injection: Seamless integration with dependency injection systems

Installation #

Add the following to your pubspec.yaml:

dependencies:
  jetleaf_convert: ^1.0.0

Quick Start #

import 'package:jetleaf_convert/jetleaf_convert.dart';

void main() {
  // Create a conversion service
  final conversionService = DefaultConversionService();
  
  // Convert between types
  final int number = conversionService.convert('42', int);
  print(number); // 42
  
  // Convert collections
  final List<Object> stringList = conversionService.convert([1, 2, 3], List<String>);
  print(stringList); // ['1', '2', '3']
}

Documentation #

For detailed documentation, please refer to the API Reference.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

0
likes
140
points
159
downloads

Publisher

verified publisherjetleaf.hapnium.com

Weekly Downloads

A library that provides high-level of conversion for the Jetleaf application. It powers the conversion of types to the target types based on request.

Homepage
Repository (GitHub)
View/report issues

Topics

#conversion-service #converters #dynamic-conversion

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

jetleaf_lang, meta

More

Packages that depend on jetleaf_convert