24 lines
441 B
Dart
24 lines
441 B
Dart
import 'package:stacked/stacked.dart';
|
|
|
|
class EventDetailsViewModel extends BaseViewModel {
|
|
int _selectedTabIndex = 0;
|
|
|
|
int get selectedTabIndex => _selectedTabIndex;
|
|
|
|
void setSelectedTab(int index) {
|
|
_selectedTabIndex = index;
|
|
notifyListeners();
|
|
}
|
|
}
|
|
|
|
class Post {
|
|
final String id;
|
|
final String title;
|
|
final String content;
|
|
|
|
Post({
|
|
required this.id,
|
|
required this.title,
|
|
required this.content,
|
|
});
|
|
} |