feat: přidat projekt
This commit is contained in:
commit
95b26b4063
42 changed files with 5261 additions and 0 deletions
12
lib/utils/dokument.dart
Normal file
12
lib/utils/dokument.dart
Normal file
|
@ -0,0 +1,12 @@
|
|||
import 'package:fleather/fleather.dart';
|
||||
|
||||
extension ActualJson on ParchmentDocument {
|
||||
List<Map<String, dynamic>> toActualJson() {
|
||||
var out = <Map<String, dynamic>>[];
|
||||
var d = toDelta().toList();
|
||||
for (var element in d) {
|
||||
out.add(element.toJson());
|
||||
}
|
||||
return out;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue