basic_utils 2.6.2

Dart native js
Flutter Android iOS web

Common util classes providing a solution for different situations.

example/main.dart

import 'package:basic_utils/basic_utils.dart';

void main() async {
  // StringUtils
  print('Convert to lowercase underscore: ' +
      StringUtils.camelCaseToLowerUnderscore('camelCase'));
  print('Is lowercase: ' + StringUtils.isLowerCase('lowercase').toString());
  print('Is uppercase: ' + StringUtils.isUpperCase('UPPERCASE').toString());
  print('Is ascii: ' + StringUtils.isAscii('Hello').toString());
  print(
      'Is null or empty: ' + StringUtils.isNullOrEmpty('notempty').toString());

  // DomainUtils
  print('Is dartlang.org a domain name? ' +
      DomainUtils.isDomainName('dartlang.org').toString());
  var domain = DomainUtils.parseDomain('dartlang.org');
  print('Sld = ' + domain.sld + ' & tld = ' + domain.tld);

  // EmailUtils
  print('Is hello@world.com an email ? ' +
      EmailUtils.isEmail('hello@world.com').toString());

  // MathUtils
  print('1 km is ' +
      MathUtils.convertUnit(1, LengthUnits.kilometer, LengthUnits.meter)
          .toString() +
      ' meter.');
}
75
likes
100
pub points
97%
popularity

Common util classes providing a solution for different situations.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

aic7to@gmail.com

License

MIT (LICENSE)

Dependencies

asn1lib, convert, crypto, http, json_annotation, logging, pointycastle

More

Packages that depend on basic_utils