string_ext 0.2.0-nullsafety.0 copy "string_ext: ^0.2.0-nullsafety.0" to clipboard
string_ext: ^0.2.0-nullsafety.0 copied to clipboard

outdated

Dart extension methods for String. Provides a more convenient and powerful API for working with strings.

string_ext #

pub package Dart CI

Dart extension methods for a String.

Usage #

To use this plugin, add string_ext as a dependency in your pubspec.yaml file.

Than add import 'package:string_ext/string_ext.dart'; to the file for use extension methods.

Example #

import 'package:string_ext/string_ext.dart';

void main() {
  final foo = 'john';
  final bar = foo.firstToUpper();
  print('Name: $bar');
  // Output: Name: John
}

Methods classifier #

Common #

Equality

  • isNullOrEmpty/isNotNullNorEmpty - check for a null or empty.

Transformation #

Case

  • firstToUpper() - converts first character in the string to upper case.
4
likes
0
pub points
87%
popularity

Publisher

verified publisherinnim.ru

Dart extension methods for String. Provides a more convenient and powerful API for working with strings.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on string_ext