From 49c58ea67907cb971f051f4941f275001a1343a5 Mon Sep 17 00:00:00 2001 From: vinothvino42 Date: Sun, 12 Jan 2025 23:12:09 +0530 Subject: [PATCH] refactor: move type property before the getModel method --- .../lib/src/parsers/mirai_opacity/mirai_opacity_parser.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mirai/lib/src/parsers/mirai_opacity/mirai_opacity_parser.dart b/packages/mirai/lib/src/parsers/mirai_opacity/mirai_opacity_parser.dart index cd73251..15372bb 100644 --- a/packages/mirai/lib/src/parsers/mirai_opacity/mirai_opacity_parser.dart +++ b/packages/mirai/lib/src/parsers/mirai_opacity/mirai_opacity_parser.dart @@ -7,13 +7,13 @@ import 'package:mirai_framework/mirai_framework.dart'; class MiraiOpacityParser extends MiraiParser { const MiraiOpacityParser(); + @override + String get type => WidgetType.opacity.name; + @override MiraiOpacity getModel(Map json) => MiraiOpacity.fromJson(json); - @override - String get type => WidgetType.opacity.name; - @override Widget parse(BuildContext context, MiraiOpacity model) { return Opacity(