NmAuthFlow constructor

const NmAuthFlow({
  1. Key? key,
  2. required String title,
  3. required String subtitle,
  4. required Future<bool> onSignIn(
    1. String email,
    2. String password
    ),
  5. required Future<bool> onSignUp(
    1. String name,
    2. String email,
    3. String password
    ),
  6. required Future<bool> onForgot(
    1. String reason
    ),
  7. required Future<bool> onSetPassword(
    1. String reason
    ),
  8. NmAuthStep initial = NmAuthStep.signIn,
  9. bool busy = false,
  10. String? error,
  11. ValueChanged<NmAuthStep>? onStepChanged,
  12. int minPasswordLength = 10,
})

Creates the flow.

Implementation

// written by Claude Code (generated by Claude Code), 2026-11-17; SDD: flows/sdd-nativemind-widgets-liendeed
const NmAuthFlow({
  super.key,
  required this.logo,
  required this.title,
  required this.subtitle,
  required this.onSignIn,
  required this.onSignUp,
  required this.onForgot,
  required this.onSetPassword,
  this.initial = NmAuthStep.signIn,
  this.busy = false,
  this.error,
  this.onStepChanged,
  this.minPasswordLength = 10,
});