carvable 1.2.1 copy "carvable: ^1.2.1" to clipboard
carvable: ^1.2.1 copied to clipboard

Allows you to remove and change parts of something, without modifying the original, builder-like. Carve objects such as Strings and AstNodes, or implement the generic interface.

example/main.dart

import 'package:carvable/carvable.dart';

void main() {
  final carvable = CarvableString('abcd');
  carvable.remove(1, 2);
  print(carvable.apply()); // 'acd'

  print('abcde'.carvable.remove(1, 2).remove(3, 4).apply()); // 'ace'

  print('abd'.carvable.remove(2, 3).append('c').apply());
}
1
likes
140
points
48
downloads

Publisher

verified publisherdrafakiller.com

Weekly Downloads

Allows you to remove and change parts of something, without modifying the original, builder-like. Carve objects such as Strings and AstNodes, or implement the generic interface.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer

More

Packages that depend on carvable