---
title: "Comment by sarfaraz ahmed on \"Freezed, or even more code generation\" | Hashnode"
description: "how to achieve something like this using freezed class Todo { Todo( this.description, { this.completed = false, String? id, }) : id = id ?? _uuid.v4(); final St"
url: "https://hashnode.com/posts/freezed/61fc782cfd8b083e57289947/comment/6301dc83428d2725de1a7d99"
---

[Discussion](https://hashnode.com/posts/freezed/61fc782cfd8b083e57289947)

Comment [Freezed, or even more code generation](https://hashnode.com/posts/freezed/61fc782cfd8b083e57289947)

[sarfaraz ahmed](https://hashnode.com/@findsarfaraz)

[Aug 21, 2022](https://hashnode.com/posts/freezed/61fc782cfd8b083e57289947/comment/6301dc83428d2725de1a7d99)

how to achieve something like this using freezed

class Todo { Todo( this.description, { this.completed = false, String? id, }) : id = id ?? \_uuid.v4();

final String id; final String description; final bool completed; }
