warnings property

List<String> get warnings

Non-fatal observations for ActionResult.warnings.

Implementation

List<String> get warnings {
  final out = <String>[];
  if (!painted) {
    out.add('target is not painted (zero bounds, off-viewport, '
        'or hidden by ancestor opacity / visibility)');
  }
  if (!hittable) {
    out.add(hitTestReal
        ? 'a tap at the centre would land on ${hitBy ?? 'another widget'}, not on the target'
        : 'target may not be hittable: an absorber, overlay or modal '
            'likely sits above it (approximate check)');
  }
  return out;
}