multiline 1.0.1+1 copy "multiline: ^1.0.1+1" to clipboard
multiline: ^1.0.1+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();
}
26
likes
40
points
190
downloads

Publisher

verified publisherplugfox.dev

Weekly Downloads

Provides convenient access to multiline String records with method extensions.

Repository (GitHub)

License

MIT (license)

More

Packages that depend on multiline