mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-28 13:58:51 +00:00
23 lines
471 B
Dart
23 lines
471 B
Dart
import 'package:image_picker/image_picker.dart';
|
|
import 'package:meta/meta.dart';
|
|
|
|
/// New comment information
|
|
///
|
|
/// @author Pierre HUBERT
|
|
|
|
class NewComment {
|
|
final int postID;
|
|
final String content;
|
|
final PickedFile image;
|
|
|
|
const NewComment({
|
|
@required this.postID,
|
|
@required this.content,
|
|
@required this.image,
|
|
}) : assert(postID != null);
|
|
|
|
bool get hasContent => content != null && content.length > 0;
|
|
|
|
bool get hasImage => image != null;
|
|
}
|