parsing_util 0.0.1
parsing_util: ^0.0.1 copied to clipboard
Safe parsing utility for Flutter — convert dynamic values into safe String, int, double, bool, DateTime, List, and more.
parsing_util #
A simple and safe parsing utility for Flutter & Dart.
Easily convert dynamic
values into safe types (String
, int
, double
, bool
, DateTime
, List
, etc.) without throwing errors.
Includes handy String extensions (orEmpty
, orNullString
).
Features #
- ✅ Safe parsing for all common types
- ✅ Converts
String
,int
,double
,bool
,DateTime
, andList
- ✅ Avoids runtime crashes by falling back to default values
- ✅ Built-in validation for IDs (
toValidId
) - ✅ Lightweight and easy to use
- ✅ Useful String extensions (
orEmpty
,orNullString
)
Getting started #
Add this to your pubspec.yaml
:
dependencies:
parsing_util: ^0.0.1
License #
This project is licensed under the MIT License - see the LICENSE file for details.