2.0 KiB

Dart - Form BLoC

Style: Wyatt Analysis SDK: Dart & Flutter

Form Bloc for Dart & Flutter.

Features

  • Form

    • FormInput: atom of a form
      • Store data
      • Validate this data
    • FormEntry: shell of this atom
      • Associate a key to an input
      • Configure form attribute (exportation, name...)
    • FormData: collection of entries
      • Contain all entries
      • Basic set operation
  • FormDataCubit

    • Data management behind a form.
      • Use entries to pass a FormData object
      • You can use several pre configured FormInput for validation
      • You can use updateFormData() to change FormData and validators during runtime (intersection, union, difference or replace)
  • Consistent

    • Every class have same naming convention

Getting started

Simply add wyatt_form_bloc in pubspec.yaml, then

import 'package:wyatt_form_bloc/wyatt_form_bloc.dart';

Usage

todo