• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

asartalo / diligence / 8476139779

29 Mar 2024 01:54AM UTC coverage: 92.831%. First build
8476139779

Pull #34

github

web-flow
Merge cd5eb9667 into e2a82f47f
Pull Request #34: diligent implementation using sqlite3 and MVP features

1046 of 1126 new or added lines in 56 files covered. (92.9%)

1282 of 1381 relevant lines covered (92.83%)

2.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/lib/models/commands/command.dart
1
// Diligence - A Task Management App
2
//
3
// Copyright (C) 2024 Wayne Duran <asartalo@gmail.com>
4
//
5
// This program is free software: you can redistribute it and/or modify it under
6
// the terms of the GNU General Public License as published by the Free Software
7
// Foundation, either version 3 of the License, or (at your option) any later
8
// version.
9
//
10
// This program is distributed in the hope that it will be useful, but WITHOUT
11
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License along with
15
// this program. If not, see <https://www.gnu.org/licenses/>.
16

17
import 'package:flutter/foundation.dart' show immutable;
18

19
@immutable
20
abstract class Command {
21
  final String? message;
22
  final DateTime at;
23

24
  Command({this.message}) : at = DateTime.now();
6✔
25
}
26

27
@immutable
28
abstract class CommandPack<T> extends Command {
29
  T get payload;
30
  CommandPack({super.message});
2✔
31
}
32

33
@immutable
34
class NoOpCommand extends Command {
35
  NoOpCommand();
1✔
36
}
37

NEW
38
final noOpCommand = NoOpCommand();
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc