FrameDesign constructor

const FrameDesign({
  1. bool? onSuccess()?,
  2. Future<void> onFutureSuccess()?,
  3. Future<bool?> onFutureSuccessValidator()?,
  4. VoidCallback? onCancel,
  5. String cancelButtonTitle = "Cancel",
  6. String title = "Title",
  7. String successButtonTitle = "Save",
  8. bool showCloseButton = true,
  9. bool conditionToDisableSuccessButton = false,
  10. IconData titlePrefixIcon = Icons.info,
  11. bool showBottomButtonBar = true,
  12. double? width,
  13. double? height,
  14. double? titleBarHeight,
  15. double? bottomBarHeight,
  16. String? info,
  17. Color? successButtonColor,
  18. Color? cancelButtonColor,
  19. FocusTraversalPolicy? traversalPolicy,
  20. bool cycleFocusWithinGroup = false,
  21. FocusNode? cancelButtonFocusNode,
  22. FocusNode? saveButtonFocusNode,
  23. String? cycleFocusTargetRoleBuilder()?,
  24. List<String> cycleFocusSkipRoles = const ['SAVE_BUTTON', 'CANCEL_BUTTON'],
})

Implementation

const FrameDesign({
  this.onSuccess,
  this.onFutureSuccess,
  this.onFutureSuccessValidator,
  this.onCancel,
  this.cancelButtonTitle = "Cancel",
  this.title = "Title",
  this.successButtonTitle = "Save",
  this.showCloseButton = true,
  this.conditionToDisableSuccessButton = false,
  this.titlePrefixIcon = Icons.info,
  this.showBottomButtonBar = true,
  this.width,
  this.height,
  this.titleBarHeight,
  this.bottomBarHeight,
  this.info,
  this.successButtonColor,
  this.cancelButtonColor,
  this.traversalPolicy,
  this.cycleFocusWithinGroup = false,
  this.cancelButtonFocusNode,
  this.saveButtonFocusNode,
  this.cycleFocusTargetRoleBuilder,
  this.cycleFocusSkipRoles = const ['SAVE_BUTTON', 'CANCEL_BUTTON'],
});