mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: change attributes map to dynamic
This commit is contained in:
parent
8bd748d7cd
commit
f2c477e89f
@ -1,7 +1,7 @@
|
|||||||
import 'dart:collection';
|
import 'dart:collection';
|
||||||
import 'package:flowy_editor/document/path.dart';
|
import 'package:flowy_editor/document/path.dart';
|
||||||
|
|
||||||
typedef Attributes = Map<String, Object>;
|
typedef Attributes = Map<String, dynamic>;
|
||||||
|
|
||||||
class Node extends LinkedListEntry<Node> {
|
class Node extends LinkedListEntry<Node> {
|
||||||
Node? parent;
|
Node? parent;
|
||||||
|
@ -397,7 +397,7 @@ class Delta {
|
|||||||
Attributes? _composeMap(Attributes? a, Attributes? b) {
|
Attributes? _composeMap(Attributes? a, Attributes? b) {
|
||||||
a ??= {};
|
a ??= {};
|
||||||
b ??= {};
|
b ??= {};
|
||||||
final attributes = <String, Object>{};
|
final Attributes attributes = {};
|
||||||
attributes.addAll(b);
|
attributes.addAll(b);
|
||||||
|
|
||||||
for (final entry in a.entries) {
|
for (final entry in a.entries) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user