multiline 1.0.1 copy "multiline: ^1.0.1" to clipboard
multiline: ^1.0.1 copied to clipboard

outdated

Provides convenient access to multiline String records with method extensions.

example/main.dart

// ignore_for_file: unused_local_variable

import 'package:multiline/multiline.dart'; // <= import package

void main() {
  // for multiline string (don't be afraid to use, it's fast enough)
  final String string = '''
   |Hello
   |  multiline!
   '''
      .multiline();

  // to get a listing of strings
  final Iterable<String> stringIterable = '''
   |Hello
   |  multiline!
   '''
      .multilineSplit();

  // for asynchronously getting a multiline string
  final Future<String> stringAsync = '''
   |Hello
   |  multiline!
   '''
      .multilineAsync();

  // for asynchronously getting a stream with lines
  final Stream<String> stringStream = '''
   |Hello
   |  multiline!
   '''
      .multilineSplitAsync();
}
27
likes
0
points
53
downloads

Publisher

verified publisherplugfox.dev

Weekly Downloads

Provides convenient access to multiline String records with method extensions.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on multiline