Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

[fix] delete "abstract" of freezed model #101

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/data/model/article.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ part 'article.freezed.dart';
part 'article.g.dart';

@freezed
abstract class Article with _$Article {
class Article with _$Article {
factory Article({
Source? source,
String? author,
Expand Down
2 changes: 1 addition & 1 deletion lib/data/model/news.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ part 'news.freezed.dart';
part 'news.g.dart';

@freezed
abstract class News with _$News {
class News with _$News {
factory News({
required String status,
required int totalResults,
Expand Down
2 changes: 1 addition & 1 deletion lib/data/model/result.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:freezed_annotation/freezed_annotation.dart';
part 'result.freezed.dart';

@freezed
abstract class Result<T> with _$Result<T> {
class Result<T> with _$Result<T> {
const Result._();

const factory Result.success({required T data}) = Success<T>;
Expand Down
2 changes: 1 addition & 1 deletion lib/data/model/source.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ part 'source.freezed.dart';
part 'source.g.dart';

@freezed
abstract class Source with _$Source {
class Source with _$Source {
factory Source({
String? id,
String? name,
Expand Down