feat: change attributes map to dynamic

This commit is contained in:
Vincent Chan 2022-07-13 16:01:48 +08:00
parent 8bd748d7cd
commit f2c477e89f
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import 'dart:collection';
import 'package:flowy_editor/document/path.dart';
typedef Attributes = Map<String, Object>;
typedef Attributes = Map<String, dynamic>;
class Node extends LinkedListEntry<Node> {
Node? parent;

View File

@ -397,7 +397,7 @@ class Delta {
Attributes? _composeMap(Attributes? a, Attributes? b) {
a ??= {};
b ??= {};
final attributes = <String, Object>{};
final Attributes attributes = {};
attributes.addAll(b);
for (final entry in a.entries) {