You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
462 B
12 lines
462 B
4 years ago
|
import 'package:aku_community_manager/mock_models/anouncement/anouncement_model.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class AnouncementProvider extends ChangeNotifier{
|
||
|
List<AnouncementCardModel> _anouncementCardModel=AnouncementCardModel.initList();
|
||
|
List<AnouncementCardModel> get anouncementCardModels =>_anouncementCardModel;
|
||
|
addAnouncementCardModel(AnouncementCardModel model){
|
||
|
|
||
|
_anouncementCardModel.insert(0, model);
|
||
|
notifyListeners();
|
||
|
}
|
||
|
}
|