Live Templates for the freezed package in the intellij ecosystem.
Create boiler plate code faster so you can get to your bussiness logic
-
Using IDE built-in plugin system: Settings/Preferences > Plugins > Marketplace > Search for "Flutter Freezed Snippets" > Install Plugin
-
Manually: Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
There should be a Live Template Group called Freezed.
Begin to type freezedClass and press Tab to generate a freezed class
@freezed
class Demo with _$Demo {
}
Begin to type freezedConst and press Tab to generate a basic constructor
const factory Demo() = _Demo;
Begin to type freezedPart and press Tab to generate the part statement
part 'scratch.freezed.dart';
Begin to type freezedFromJson and press Tab to generate the fromJson method for json_serializable
factory Demo.fromJson(Map<String, dynamic> json) => _$DemoFromJson(json);
Begin to type freezedJsonPart and press Tab to generate the part statement for json_serializable
part 'scratch.g.dart';
if you have any bugs/requests go to the Issues tab