sefidgaran / signalr_client

A Flutter SignalR Client for ASP.NET Core
https://pub.dev/packages/signalr_netcore
MIT License
71 stars 111 forks source link

Unhandled Exception: type 'Null' is not a subtype of type 'Object' #61

Closed muonroi closed 11 months ago

muonroi commented 11 months ago

When function hub not return value then have exeption ([ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'Object'). image image image

muonroi commented 11 months ago

I encountered an above exeption when use version ^0.1.7+2-nullsafety.3. When run command 'flutter pub add signalr_netcore' it will auto detect version '^0.1.7+2-nullsafety.3'. Because signalr_netcore >=1.3.5 depends on http ^0.13.6 and my project depends on http ^1.1.0, signalr_netcore >=1.3.5 is forbidden. I sloved above issue when use version at branch

signalr_netcore:
    git:
      url: https://github.com/geekz-reno/signalr_client.git
      ref: master