5 Useful Dart Packages
Dart has more packages than Flutter in Mobile development. Let’s learn them here!
1.system_info
Dart can get information about the Operating System (OS).
- SysInfo.operatingSystemName : shows the Operating Systems Name
- SysInfo.userName : User name
- …
2. Path
It helps manipulating folder & file path
- path package is very useful because every Operating system has different path delimiter
3. string_scanner
This package exposes a StringScanner
type that makes it easy to parse a string using a series of Pattern
s. For example:crypto
4. crypto
Cryptographic hashing functions for Dart
A set of cryptographic hashing functions implemented in pure Dart
To hash a list of bytes, invoke the convert
method on the sha1
, sha256
or md5
objects.
Photo by Pete Pedroza on UnsplashThe following hashing algorithms are supported:
- SHA-1
- SHA-224
- SHA-256
- basic_utilsSHA-384
- SHA-512
- MD5
- HMAC (i.e. HMAC-MD5, HMAC-SHA1, HMAC-SHA256)
5. basic_utils
A dart package for many helper methods fitting different situations.
The package contains different classes. Each class contains methods that provide a solution for certain problems.
- StringUtils
- DomainUtils
- EmailUtils
- MathUtils
- HttpUtils
- DnsUtils
- SortUtils
- ColorUtils
- DateUtils
- X509Utils
- IterableUtils
- CryptoUtils
Photo by Pete Pedroza on UnsplashPhoto by Pete Pedroza on Unsplash