report page
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
part of 'report_bloc.dart';
|
||||
|
||||
@freezed
|
||||
class ReportState with _$ReportState {
|
||||
factory ReportState({
|
||||
required String title,
|
||||
required DateTime startDate,
|
||||
required DateTime endDate,
|
||||
required String rangeDateFormatted,
|
||||
@Default(0) int selectedMenu,
|
||||
}) = _ReportState;
|
||||
|
||||
factory ReportState.initial() => ReportState(
|
||||
title: 'Ringkasan Laporan Penjualan',
|
||||
startDate: DateTime.now(),
|
||||
endDate: DateTime.now(),
|
||||
rangeDateFormatted:
|
||||
'${DateTime.now().toFormattedDate()} - ${DateTime.now().toFormattedDate()}',
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user