UAdminHotelUserController class
Hotel users list and the one user dialog: create, or details + edit.
- Inheritance
-
- Object
- UBaseController
- UAdminHotelUserController
Constructors
Properties
- birthdate ↔ DateTime
-
getter/setter pair
- birthDateController → TextEditingController
-
final
- canManageRoles → bool
-
Only full admins give roles and permissions.
no setter
-
contracts
↔ List<
UDormBedContractResponse> -
getter/setter pair
- detailState → URxState
-
final
- editing ↔ UUserResponse?
-
getter/setter pair
- emailController → TextEditingController
-
final
- emailFilterController → TextEditingController
-
final
- endDate ↔ DateTime?
-
getter/setter pairinherited
- endDateController → TextEditingController
-
finalinherited
- fatherNameController → TextEditingController
-
final
- firstNameController → TextEditingController
-
final
- firstNameFilterController → TextEditingController
-
final
-
formKey
→ GlobalKey<
FormState> -
finalinherited
- gender ↔ TagUser
-
getter/setter pair
- genderFilter ↔ TagUser?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastNameController → TextEditingController
-
final
- lastNameFilterController → TextEditingController
-
final
-
list
↔ URxList<
UUserResponse> -
getter/setter pair
-
merchants
↔ List<
UMerchantResponse> -
getter/setter pair
- nationalCodeFilterController → TextEditingController
-
final
- pageNumber → URxInt
-
finalinherited
- pageSize ↔ int
-
getter/setter pairinherited
- passwordController → TextEditingController
-
final
-
permissions
↔ Set<
TagUser> -
getter/setter pair
- phoneController → TextEditingController
-
final
- phoneFilterController → TextEditingController
-
final
- queryFilterController → TextEditingController
-
final
- role ↔ TagUser
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startDate ↔ DateTime?
-
The list filter's date range, shown in startDateController / endDateController.
getter/setter pairinherited
- startDateController → TextEditingController
-
finalinherited
- state → URxState
-
finalinherited
- tagFilter ↔ TagUser?
-
getter/setter pair
-
tagOrderBy
→ URx<
TagOrderBy> -
finalinherited
- totalCount ↔ int
-
getter/setter pairinherited
- totalPages → URxInt
-
finalinherited
- totalWalletBalance → double
-
no setter
- userNameController → TextEditingController
-
final
- userNameFilterController → TextEditingController
-
final
- verifiedOnly ↔ bool
-
getter/setter pair
-
wallets
↔ List<
UWalletResponse> -
getter/setter pair
Methods
-
applyFilters(
) → void -
clearDates(
) → void -
inherited
-
clearFilters(
) → void -
confirmAction(
Future< (dynamic, dynamic, String?)> call(), void reload(), {String? title, String? message}) → void -
Asks for confirmation (the dialog closes itself), then runs
callthrough send. Defaults to a delete prompt.inherited -
delete(
UUserResponse u) → void -
dispose(
) → void -
Releases everything this controller owns. The page that created the controller calls this from its own
State.dispose(); a subclass that adds its own notifiers overrides this and ends withsuper.dispose().override -
init(
{UUserResponse? user}) → void -
intOf(
TextEditingController c) → int? -
inherited
-
lifecycleOf(
UDormBedContractResponse c) → UAdminHotelContractLifecycle -
loadForm(
UUserResponse? u) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
numOf(
TextEditingController c) → double? -
The number typed in
c(Persian digits and separators allowed); null when empty.inherited -
outstandingOf(
UDormBedContractResponse c) → double -
read(
) → Future< void> -
readDetail(
UUserResponse u) → Future< void> - Loads one user's wallets, merchants and dorm contracts for the details part of the dialog.
-
readUsersById(
List< String> ids) → Future<List< UUserResponse> > -
The users with
ids; the ones that fail to load are skipped.inherited -
save(
) → Future< bool> - Creates or updates the user. Returns true when the dialog can close.
-
searchUsers(
String query) → Future< List< UUserResponse> > -
Users matching
query, for user pickers.inherited -
send<
T> (Future< (T?, Object?, String?)> call, VoidCallback? reload) → Future<T?> -
Awaits a service call's
(ok, error, exception)result: on success toasts and runsreload, otherwise toasts the error. Returns the ok response (on create itsresultis the new id), or null when it failed.inherited -
setError(
[String? message]) → void -
inherited
-
setTotalPages(
int count) → void -
inherited
-
splitList(
String text) → List< String> -
"a, b، c" →
"a", "b", "c"(Latin and Persian commas).inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited