kanweg_model.dart 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. import '/flutter_flow/flutter_flow_theme.dart';
  2. import '/flutter_flow/flutter_flow_util.dart';
  3. import '/flutter_flow/flutter_flow_widgets.dart';
  4. import 'dart:ui';
  5. import '/custom_code/actions/index.dart' as actions;
  6. import 'kanweg_widget.dart' show KanwegWidget;
  7. import 'package:flutter/material.dart';
  8. import 'package:flutter/scheduler.dart';
  9. import 'package:flutter_spinkit/flutter_spinkit.dart';
  10. import 'package:google_fonts/google_fonts.dart';
  11. import 'package:provider/provider.dart';
  12. class KanwegModel extends FlutterFlowModel<KanwegWidget> {
  13. /// Local state fields for this page.
  14. late LoggableList<dynamic> _agendaLijst = LoggableList([]);
  15. set agendaLijst(List<dynamic> value) {
  16. if (value != null) {
  17. _agendaLijst = LoggableList(value);
  18. }
  19. debugLogWidgetClass(this);
  20. }
  21. List<dynamic> get agendaLijst =>
  22. _agendaLijst?..logger = () => debugLogWidgetClass(this);
  23. void addToAgendaLijst(dynamic item) => agendaLijst.add(item);
  24. void removeFromAgendaLijst(dynamic item) => agendaLijst.remove(item);
  25. void removeAtIndexFromAgendaLijst(int index) => agendaLijst.removeAt(index);
  26. void insertAtIndexInAgendaLijst(int index, dynamic item) =>
  27. agendaLijst.insert(index, item);
  28. void updateAgendaLijstAtIndex(int index, Function(dynamic) updateFn) =>
  29. agendaLijst[index] = updateFn(agendaLijst[index]);
  30. /// State fields for stateful widgets in this page.
  31. // Stores action output result for [Custom Action - drupalRequest] action in kanweg widget.
  32. dynamic? _resultDrupalRequest;
  33. set resultDrupalRequest(dynamic? value) {
  34. _resultDrupalRequest = value;
  35. debugLogWidgetClass(this);
  36. }
  37. dynamic? get resultDrupalRequest => _resultDrupalRequest;
  38. final Map<String, DebugDataField> debugGeneratorVariables = {};
  39. final Map<String, DebugDataField> debugBackendQueries = {};
  40. final Map<String, FlutterFlowModel> widgetBuilderComponents = {};
  41. @override
  42. void initState(BuildContext context) {
  43. debugLogWidgetClass(this);
  44. }
  45. @override
  46. void dispose() {}
  47. @override
  48. WidgetClassDebugData toWidgetClassDebugData() => WidgetClassDebugData(
  49. localStates: {
  50. 'agendaLijst': debugSerializeParam(
  51. agendaLijst,
  52. ParamType.JSON,
  53. isList: true,
  54. link:
  55. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=kanweg',
  56. searchReference:
  57. 'reference=Qh4KFAoLYWdlbmRhTGlqc3QSBTJpNnFvcgYSAggJIAFQAVoLYWdlbmRhTGlqc3RiBmthbndlZw==',
  58. name: 'dynamic',
  59. nullable: false,
  60. )
  61. }.entries,
  62. actionOutputs: {
  63. 'resultDrupalRequest': debugSerializeParam(
  64. resultDrupalRequest,
  65. ParamType.JSON,
  66. link:
  67. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=kanweg',
  68. name: 'dynamic',
  69. nullable: true,
  70. )
  71. }.entries,
  72. generatorVariables: debugGeneratorVariables.entries,
  73. backendQueries: debugBackendQueries.entries,
  74. componentStates: {
  75. ...widgetBuilderComponents.map(
  76. (key, value) => MapEntry(
  77. key,
  78. value.toWidgetClassDebugData(),
  79. ),
  80. ),
  81. }.withoutNulls.entries,
  82. link:
  83. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd/tab=uiBuilder&page=kanweg',
  84. searchReference: 'reference=OgZrYW53ZWdQAVoGa2Fud2Vn',
  85. widgetClassName: 'kanweg',
  86. );
  87. }