Code generation for immutable classes that has a simple syntax/API without compromising on the features.
While there are many code-generators available to help you deal with immutable objects, they usually come with a trade-off. Either they have a simple syntax but lack features, or they have very advanced features but with complex syntax.
import 'package:freezed_annotation/freezed_annotation.dart';
part 'my_demo.freezed.dart';
@freezed
class Person with _$Person {
factory Person({ String name, int age }) = _Person;
}