carvable 1.0.0
carvable: ^1.0.0 copied to clipboard
Allows you to remove and change parts of something, without modifying the original. 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'
}