Frontend  0.5.1
Loading...
Searching...
No Matches

Dialog to add or edit loco or turnout. More...

Inheritance diagram for AddEditDialog:
Collaboration diagram for AddEditDialog:

Public Member Functions

String tooltip ()

Public Attributes

final dynamic item
Loco get loco => item as Loco?
Turnout get turnout => item as Turnout?

Detailed Description

AddEditDialog is used to add or edit locomotives or accessories. The class is generic so the type to be edited must be passed when creating the dialog (e.g. AddEditDialog<Loco>). If no type is passed, a query will be made at runtime. Internally, the class uses a FormBuilder that sends a POST request via DccService upon completion and successful validation.

Member Function Documentation

◆ tooltip()

String AddEditDialog::tooltip ( )
inline
Todo
document

Member Data Documentation

◆ item

final dynamic AddEditDialog::item

◆ loco

Loco get AddEditDialog::loco => item as Loco?

◆ turnout

Turnout get AddEditDialog::turnout => item as Turnout?

The documentation for this class was generated from the following file:
  • /home/runner/work/Frontend/Frontend/lib/widget/dialog/add_edit.dart