2025-11-01 04:11:29 +07:00

21 lines
554 B
Dart

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()}',
);
}