mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-09 15:38:13 -07:00
Init repo
This commit is contained in:
commit
764b6034e3
566 changed files with 212335 additions and 0 deletions
24
lib/models/views_model.dart
Normal file
24
lib/models/views_model.dart
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
// ignore_for_file: public_member_api_docs, sort_constructors_first
|
||||
import 'package:fladder/models/view_model.dart';
|
||||
|
||||
class ViewsModel {
|
||||
final bool loading;
|
||||
final List<ViewModel> views;
|
||||
final List<ViewModel> dashboardViews;
|
||||
ViewsModel({
|
||||
this.loading = false,
|
||||
this.views = const [],
|
||||
this.dashboardViews = const [],
|
||||
});
|
||||
|
||||
ViewsModel copyWith({
|
||||
bool? loading,
|
||||
List<ViewModel>? views,
|
||||
List<ViewModel>? dashboardViews,
|
||||
}) {
|
||||
return ViewsModel(
|
||||
loading: loading ?? this.loading,
|
||||
views: views ?? this.views,
|
||||
dashboardViews: dashboardViews ?? this.dashboardViews);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue