• 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

20.0
/lib/models/task_node.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
import 'task.dart';
20

21
@immutable
22
class TaskNode {
23
  final Task task;
24
  final int level;
25
  final int childrenCount;
26
  final int position;
27

28
  const TaskNode({
2✔
29
    required this.task,
30
    required this.level,
31
    required this.childrenCount,
32
    required this.position,
33
  });
34

NEW
35
  TaskNode updateTask(Task task) => TaskNode(
×
36
        task: task,
NEW
37
        level: level,
×
NEW
38
        childrenCount: childrenCount,
×
NEW
39
        position: position,
×
40
      );
41
}
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

© 2025 Coveralls, Inc