mirrored_repositories/Flutter_playground/Study/Flutter_Bloc_Essential_Course/todo_app_cubit/lib
// ignore_for_file: public_member_api_docs, sort_constructors_first

import 'package:equatable/equatable.dart';
import 'package:uuid/uuid.dart';

enum Filter {
  all,
  active,
  completed,
}

Uuid uuid = const Uuid();

class Todo extends Equatable {
  final String id;
  final String desc;
  final bool completed;

  Todo({
    String? id,
    required this.desc,
    this.completed = false,
  }) : id = id ?? uuid.v4();

  @override
  bool get stringify => true;

  @override
  List<Object> get props => [id, desc, completed];
}
