Skip to content

Error: type 'Null' is not a subtype of type 'String' in type cast #26

@ddomnik

Description

@ddomnik

screen_retriever: ^0.2.0
Windows 11

This error is usually raised when the device (laptop) turns off its display due to inactivity.

❌ Error: type 'Null' is not a subtype of type 'String' in type cast
[12:34:45.000889] [TRACE] Stack trace:
#0      ScreenRetriever._handleScreenEvent (package:screen_retriever/src/screen_retriever.dart:15:33)
#1      _rootRunUnary (dart:async/zone.dart:1538:47)
#2      _CustomZone.runUnary (dart:async/zone.dart:1429:19)
#3      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1329:7)
#4      CastStreamSubscription._onData (dart:_internal/async_cast.dart:95:11)
#5      _rootRunUnary (dart:async/zone.dart:1538:47)
#6      _CustomZone.runUnary (dart:async/zone.dart:1429:19)
#7      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1329:7)
#8      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381:11)
#9      _DelayedData.perform (dart:async/stream_impl.dart:573:14)
#10     _PendingEvents.handleNext (dart:async/stream_impl.dart:678:11)
#11     _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:649:7)
#12     _rootRun (dart:async/zone.dart:1517:47)
#13     _CustomZone.run (dart:async/zone.dart:1422:19)
#14     _CustomZone.runGuarded (dart:async/zone.dart:1321:7)
#15     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1362:23)
#16     _rootRun (dart:async/zone.dart:1525:13)
#17     _CustomZone.run (dart:async/zone.dart:1422:19)
#18     _CustomZone.runGuarded (dart:async/zone.dart:1321:7)
#19     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1362:23)
#20     _microtaskLoop (dart:async/schedule_microtask.dart:40:35)
#21     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions