12345678910111213141516171819202122232425262728 |
-
-
-
-
- import 'package:notus/notus.dart';
-
- void main() {
- final doc = NotusDocument();
-
- doc.insert(
- 0, 'Notus package provides rich text document model for Zefyr editor');
- doc.format(0, 5, NotusAttribute.bold);
- doc.format(0, 0, NotusAttribute.h1);
- doc.delete(23, 10);
-
-
- doc.collectStyle(1, 0);
-
-
- doc.changes.listen((change) {
- print(change);
- });
-
-
-
- doc.close();
- }
|