Skip to content

Commit

Permalink
refactor: move type property before the getModel method
Browse files Browse the repository at this point in the history
  • Loading branch information
vinothvino42 committed Jan 12, 2025
1 parent f8f2c8c commit 49c58ea
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import 'package:mirai_framework/mirai_framework.dart';
class MiraiOpacityParser extends MiraiParser<MiraiOpacity> {
const MiraiOpacityParser();

@override
String get type => WidgetType.opacity.name;

@override
MiraiOpacity getModel(Map<String, dynamic> json) =>
MiraiOpacity.fromJson(json);

@override
String get type => WidgetType.opacity.name;

@override
Widget parse(BuildContext context, MiraiOpacity model) {
return Opacity(
Expand Down

0 comments on commit 49c58ea

Please sign in to comment.