From 4052779cfe7d66dc2de9b880ef1b4d871e846e21 Mon Sep 17 00:00:00 2001 From: Ellet <hello@freshplatform.net> Date: Fri, 15 Dec 2023 14:19:16 +0300 Subject: [PATCH] Update delta_to_markdown --- lib/src/packages/quill_markdown/delta_to_markdown.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/packages/quill_markdown/delta_to_markdown.dart b/lib/src/packages/quill_markdown/delta_to_markdown.dart index 0803fabe..d3e7a33b 100644 --- a/lib/src/packages/quill_markdown/delta_to_markdown.dart +++ b/lib/src/packages/quill_markdown/delta_to_markdown.dart @@ -310,15 +310,15 @@ abstract class _NodeVisitor<T> { extension _NodeX on Node { T accept<T>(_NodeVisitor<T> visitor, [T? context]) { switch (runtimeType) { - case Root: + case const (Root): return visitor.visitRoot(this as Root, context); - case Block: + case const (Block): return visitor.visitBlock(this as Block, context); - case Line: + case const (Line): return visitor.visitLine(this as Line, context); - case QuillText: + case const (QuillText): return visitor.visitText(this as QuillText, context); - case Embed: + case const (Embed): return visitor.visitEmbed(this as Embed, context); } throw Exception('Container of type $runtimeType cannot be visited');