Tinhorn / freezed_intellij_live_templates

Live Templates for the freezed package in the intellij ecosystem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

freezed_intellij_live_templates

Live Templates for the freezed package in the intellij ecosystem.

Create boiler plate code faster so you can get to your bussiness logic

Installation

  • 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. Freezed Live Template

Live Templates

freezedClass

Begin to type freezedClass and press Tab to generate a freezed class

@freezed
class Demo with _$Demo {
}

freezedConst

Begin to type freezedConst and press Tab to generate a basic constructor

const factory Demo() = _Demo;

freezedPart

Begin to type freezedPart and press Tab to generate the part statement

part 'scratch.freezed.dart';

freezedFromJson

Begin to type freezedFromJson and press Tab to generate the fromJson method for json_serializable

factory Demo.fromJson(Map<String, dynamic> json) => _$DemoFromJson(json);

freezedJsonPart

Begin to type freezedJsonPart and press Tab to generate the part statement for json_serializable

part 'scratch.g.dart';

Contact

if you have any bugs/requests go to the Issues tab

About

Live Templates for the freezed package in the intellij ecosystem

License:MIT License


Languages

Language:Kotlin 100.0%