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(