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

Duit-Foundation / flutter_duit / 15445954719

04 Jun 2025 03:11PM UTC coverage: 46.996% (+0.06%) from 46.939%
15445954719

push

github

web-flow
feat: AbsorbPointer (#278)

25 of 45 new or added lines in 6 files covered. (55.56%)

3152 of 6707 relevant lines covered (47.0%)

6.4 hits per line

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

40.0
/lib/src/attributes/absorb_pointer_attributes.dart
1
import 'package:flutter_duit/flutter_duit.dart';
2

3
final class AbsorbPointerAttributes
4
    implements DuitAttributes<AbsorbPointerAttributes> {
5
  final bool absorbing;
6

7
  const AbsorbPointerAttributes({
2✔
8
    required this.absorbing,
9
  });
10

11
  factory AbsorbPointerAttributes.fromJson(Map<String, dynamic> json) {
2✔
12
    return AbsorbPointerAttributes(
2✔
13
      absorbing: json["absorbing"] ?? true,
2✔
14
    );
15
  }
16

NEW
17
  @override
×
18
  AbsorbPointerAttributes copyWith(AbsorbPointerAttributes other) {
NEW
19
    return AbsorbPointerAttributes(
×
NEW
20
      absorbing: assignIfNotNull(other.absorbing, absorbing),
×
21
    );
22
  }
23

NEW
24
  @override
×
25
  ReturnT dispatchInternalCall<ReturnT>(String methodName,
26
      {Iterable? positionalParams, Map<String, dynamic>? namedParams}) {
27
    return switch (methodName) {
NEW
28
      'fromJson' => this as ReturnT,
×
NEW
29
      String() => throw UnimplementedError("$methodName is not implemented"),
×
30
    };
31
  }
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc