Skip to content

Instantly share code, notes, and snippets.

@mono0926
Created February 22, 2022 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mono0926/801ae73fa93959d2fd34810a7f7268ca to your computer and use it in GitHub Desktop.
Save mono0926/801ae73fa93959d2fd34810a7f7268ca to your computer and use it in GitHub Desktop.
import 'package:flutter/foundation.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
part 'count_state.freezed.dart';
@freezed
class CountState with _$CountState {
const factory CountState({
@Default(0) int count,
}) = _CountState;
const CountState._();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment