How to install and use formz with Flutter 3.10.0

A popular Flutter package with 501 likes that support Flutter version 3.10.0 and above. Last version of the package was published on May 17, 2023.

Installing formz

You can either add the package directly using the flutter command line.

$ flutter pub add formz

Or add the dependency directly to your pubspec.yaml file.
dependencies:
  formz: ^0.6.0

In either case, make sure to refresh your packages by running the following command:

$ flutter pub get

Using formz

Once you have installed the package, you can use it in your Flutter application by importing it.
import 'package:formz/formz.dart';