Blog post edit layouts and BloC

This commit is contained in:
2024-05-13 11:53:42 +03:00
parent 76a29ebf67
commit 96ad5a7cfb
8 changed files with 312 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
// ignore_for_file: must_be_immutable
import 'package:equatable/equatable.dart';
/// This class defines the variables used in the [blog_post_edit_screen],
/// and is typically used to hold data that is passed between different parts of the application.
class BlogPostEditModel extends Equatable {
final String blog_postID;
BlogPostEditModel({required String blog_postID}) : blog_postID = blog_postID;
BlogPostEditModel copyWith(String blog_postID) {
return BlogPostEditModel(blog_postID: blog_postID);
}
@override
List<Object?> get props => [blog_postID];
}