Related file path:
lib/src/core/document/document.dart
Error code at line(78 - 87):
/// First node of the document.
Node? get first => root.children.first;
/// Last node of the document.
Node? get last {
var last = root.children.last;
while (last.children.isNotEmpty) {
last = last.children.last;
}
return last;
}
How to Reproduce
just run code Document.blank().first or Document.blank().last while see.
Bug Description
Related file path: lib/src/core/document/document.dart
Error code at line(78 - 87):
How to Reproduce
just run code
Document.blank().first
orDocument.blank().last
while see.Expected Behavior
throw exception IterableElementError.noElement();
Operating System
macos
AppFlowy Editor Version(s)
3.2.0
Screenshots
Additional Context
No response