You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We get the below error when calling the MulticastProbe() from the web app.
`bash-3.2$ flutter run
Connected devices:
macOS (desktop) • macos • darwin-arm64 • macOS 14.6.1 23G93 darwin-arm64 (Rosetta)
Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.6.1 23G93 darwin-arm64 (Rosetta)
Chrome (web) • chrome • web-javascript • Google Chrome 130.0.6723.117
Checking for wireless devices...
[2]: Mac Designed for iPad (mac-designed-for-ipad)
[3]: Chrome (chrome)
Please choose one (or "q" to quit): 3
Launching lib/main.dart on Chrome in debug mode...
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:1:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
^
Context: The unavailable library 'dart:ffi' is imported through these packages:
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:5:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:8:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:5:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:6:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:12:42: Error: Type 'Struct' not found.
sealed class _OnvifDiscoveryData extends Struct {
^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:13:10: Error: Type 'Int8' not found. @array(128, 8192)
^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:24: Error: Type 'Int8' not found.
external Array<Array> buf;
^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:18: Error: Type 'Array' not found.
external Array<Array> buf;
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:12: Error: Type 'Array' not found.
external Array<Array> buf;
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:35: Error: Type 'NativeType' not found.
late final int Function(Pointer, Pointer, int)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:27: Error: Type 'Pointer' not found.
late final int Function(Pointer, Pointer, int)
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:56: Error: Type 'NativeType' not found.
late final int Function(Pointer, Pointer, int)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:48: Error: Type 'Pointer' not found.
late final int Function(Pointer, Pointer, int)
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:8:29: Error: Type 'Pointer' not found.
typedef PosixMallocNative = Pointer Function(IntPtr);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:8:46: Error: Type 'IntPtr' not found.
typedef PosixMallocNative = Pointer Function(IntPtr);
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:11:10: Error: Type 'Pointer' not found.
external Pointer posixMalloc(int size);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:13:29: Error: Type 'Pointer' not found.
typedef PosixCallocNative = Pointer Function(IntPtr num, IntPtr size);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:13:46: Error: Type 'IntPtr' not found.
typedef PosixCallocNative = Pointer Function(IntPtr num, IntPtr size);
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:13:58: Error: Type 'IntPtr' not found.
typedef PosixCallocNative = Pointer Function(IntPtr num, IntPtr size);
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:16:10: Error: Type 'Pointer' not found.
external Pointer posixCalloc(int num, int size);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:18:27: Error: Type 'Void' not found.
typedef PosixFreeNative = Void Function(Pointer);
^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:18:41: Error: Type 'Pointer' not found.
typedef PosixFreeNative = Void Function(Pointer);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:20:9: Error: Type 'Void' not found. @Native<Void Function(Pointer)>(symbol: 'free')
^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:20:23: Error: Type 'Pointer' not found. @Native<Void Function(Pointer)>(symbol: 'free')
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:21:25: Error: Type 'Pointer' not found.
external void posixFree(Pointer ptr);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:23:15: Error: Type 'NativeFunction' not found.
final Pointer<NativeFunction> posixFreePointer =
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:23:7: Error: Type 'Pointer' not found.
final Pointer<NativeFunction> posixFreePointer =
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:27:7: Error: Type 'DynamicLibrary' not found.
final DynamicLibrary ole32lib = DynamicLibrary.open('ole32.dll');
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:29:35: Error: Type 'Pointer' not found.
typedef WinCoTaskMemAllocNative = Pointer Function(Size);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:29:52: Error: Type 'Size' not found.
typedef WinCoTaskMemAllocNative = Pointer Function(Size);
^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:30:29: Error: Type 'Pointer' not found.
typedef WinCoTaskMemAlloc = Pointer Function(int);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:35:34: Error: Type 'Void' not found.
typedef WinCoTaskMemFreeNative = Void Function(Pointer);
^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:35:48: Error: Type 'Pointer' not found.
typedef WinCoTaskMemFreeNative = Void Function(Pointer);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:36:42: Error: Type 'Pointer' not found.
typedef WinCoTaskMemFree = void Function(Pointer);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:37:15: Error: Type 'NativeFunction' not found.
final Pointer<NativeFunction> winCoTaskMemFreePointer =
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:37:7: Error: Type 'Pointer' not found.
final Pointer<NativeFunction> winCoTaskMemFreePointer =
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:48:40: Error: Type 'Allocator' not found.
final class MallocAllocator implements Allocator {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:60:3: Error: Type 'Pointer' not found.
Pointer allocate(int byteCount, {int? alignment}) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:60:33: Error: Type 'NativeType' not found.
Pointer allocate(int byteCount, {int? alignment}) {
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:79:13: Error: Type 'Pointer' not found.
void free(Pointer pointer) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:115:11: Error: Type 'NativeFinalizerFunction' not found.
Pointer get nativeFree =>
^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:115:3: Error: Type 'Pointer' not found.
Pointer get nativeFree =>
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:134:40: Error: Type 'Allocator' not found.
final class CallocAllocator implements Allocator {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:138:20: Error: Type 'Pointer' not found.
void _fillMemory(Pointer destination, int length, int fill) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:147:20: Error: Type 'Pointer' not found.
void _zeroMemory(Pointer destination, int length) =>
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:160:3: Error: Type 'Pointer' not found.
Pointer allocate(int byteCount, {int? alignment}) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:160:33: Error: Type 'NativeType' not found.
Pointer allocate(int byteCount, {int? alignment}) {
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:182:13: Error: Type 'Pointer' not found.
void free(Pointer pointer) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:218:11: Error: Type 'NativeFinalizerFunction' not found.
Pointer get nativeFree =>
^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:218:3: Error: Type 'Pointer' not found.
Pointer get nativeFree =>
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:24:24: Error: Type 'Allocator' not found.
class Arena implements Allocator {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:26:9: Error: Type 'Allocator' not found.
final Allocator _wrappedAllocator;
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:29:22: Error: Type 'NativeType' not found.
final List<Pointer> _managedMemoryPointers = [];
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:29:14: Error: Type 'Pointer' not found.
final List<Pointer> _managedMemoryPointers = [];
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:40:10: Error: Type 'Allocator' not found.
Arena([Allocator allocator = calloc]) : _wrappedAllocator = allocator;
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:50:3: Error: Type 'Pointer' not found.
Pointer allocate(int byteCount, {int? alignment}) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:50:33: Error: Type 'NativeType' not found.
Pointer allocate(int byteCount, {int? alignment}) {
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:101:21: Error: Type 'NativeType' not found.
void free(Pointer pointer) {}
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:101:13: Error: Type 'Pointer' not found.
void free(Pointer pointer) {}
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:120:6: Error: Type 'Allocator' not found.
[Allocator wrappedAllocator = calloc]) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:144:6: Error: Type 'Allocator' not found.
[Allocator wrappedAllocator = calloc]) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:15:27: Error: Type 'Opaque' not found.
final class Utf16 extends Opaque {}
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:18:27: Error: Type 'Pointer' not found.
extension Utf16Pointer on Pointer {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:51:46: Error: Type 'Uint16' not found.
static String _toKnownLengthString(Pointer codeUnits, int length) =>
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:51:38: Error: Type 'Pointer' not found.
static String _toKnownLengthString(Pointer codeUnits, int length) =>
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:54:48: Error: Type 'Uint16' not found.
static String _toUnknownLengthString(Pointer codeUnits) {
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:54:40: Error: Type 'Pointer' not found.
static String _toUnknownLengthString(Pointer codeUnits) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:67:30: Error: Type 'Uint16' not found.
static int _length(Pointer codeUnits) {
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:67:22: Error: Type 'Pointer' not found.
static int _length(Pointer codeUnits) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:92:3: Error: Type 'Pointer' not found.
Pointer toNativeUtf16({Allocator allocator = malloc}) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:92:33: Error: Type 'Allocator' not found.
Pointer toNativeUtf16({Allocator allocator = malloc}) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:15:26: Error: Type 'Opaque' not found.
final class Utf8 extends Opaque {}
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:18:26: Error: Type 'Pointer' not found.
extension Utf8Pointer on Pointer {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:51:30: Error: Type 'Uint8' not found.
static int _length(Pointer codeUnits) {
^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:51:22: Error: Type 'Pointer' not found.
static int _length(Pointer codeUnits) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:80:3: Error: Type 'Pointer' not found.
Pointer toNativeUtf8({Allocator allocator = malloc}) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:80:31: Error: Type 'Allocator' not found.
Pointer toNativeUtf8({Allocator allocator = malloc}) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:11:2: Error: Couldn't find constructor 'Packed'. @PACKED(1)
^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:13:10: Error: 'Int8' isn't a type. @array(128, 8192)
^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:13:4: Error: Couldn't find constructor 'Array'. @array(128, 8192)
^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:10:2: Error: Couldn't find constructor 'Native'. @Native(symbol: 'malloc')
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:15:2: Error: Couldn't find constructor 'Native'. @Native(symbol: 'calloc')
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:20:9: Error: 'Void' isn't a type. @Native<Void Function(Pointer)>(symbol: 'free')
^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:20:23: Error: 'Pointer' isn't a type. @Native<Void Function(Pointer)>(symbol: 'free')
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:20:2: Error: Couldn't find constructor 'Native'. @Native<Void Function(Pointer)>(symbol: 'free')
^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:24: Error: 'Int8' isn't a type.
external Array<Array> buf;
^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:18: Error: 'Array' isn't a type.
external Array<Array> buf;
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:12: Error: 'Array' isn't a type.
external Array<Array> buf;
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:35: Error: 'NativeType' isn't a type.
late final int Function(Pointer, Pointer, int)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:27: Error: 'Pointer' isn't a type.
late final int Function(Pointer, Pointer, int)
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:56: Error: 'NativeType' isn't a type.
late final int Function(Pointer, Pointer, int)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:48: Error: 'Pointer' isn't a type.
late final int Function(Pointer, Pointer, int)
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:69:41: Error: 'NativeType' isn't a type.
final Pointer Function(String symbolName) lookup =
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:69:11: Error: 'Pointer' isn't a type.
final Pointer Function(String symbolName) lookup =
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:76:13: Error: 'Int32' isn't a type.
Int32 Function(
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:77:23: Error: 'NativeType' isn't a type.
Pointer,
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:77:15: Error: 'Pointer' isn't a type.
Pointer,
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:78:23: Error: 'NativeType' isn't a type.
Pointer,
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:78:15: Error: 'Pointer' isn't a type.
Pointer,
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:79:15: Error: 'Int32' isn't a type.
Int32,
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:75:9: Error: 'NativeFunction' isn't a type.
NativeFunction<
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:84:19: Error: 'NativeType' isn't a type.
Pointer,
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:84:11: Error: 'Pointer' isn't a type.
Pointer,
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:85:19: Error: 'NativeType' isn't a type.
Pointer,
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:85:11: Error: 'Pointer' isn't a type.
Pointer,
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:71:14: Error: The getter 'DynamicLibrary' isn't defined for the class 'MulticastProbe'.
'MulticastProbe' is from 'package:easy_onvif/src/multicast_probe.dart' ('../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'DynamicLibrary'.
return DynamicLibrary.open(discoveryDllPath).lookup;
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:154:24: Error: The method 'call' isn't defined for the class 'CallocAllocator'.
'CallocAllocator' is from 'package:ffi/src/allocation.dart' ('../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart').
Try correcting the name to the name of an existing method, or defining a method named 'call'.
final data = calloc<_OnvifDiscoveryData>();
^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:163:11: Error: The getter 'Pointer' isn't defined for the class 'MulticastProbe'.
'MulticastProbe' is from 'package:easy_onvif/src/multicast_probe.dart' ('../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Pointer'.
Pointer.fromAddress(data.address + index * 8192)
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:21:25: Error: 'Pointer' isn't a type.
external void posixFree(Pointer ptr);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:23:15: Error: 'NativeFunction' isn't a type.
final Pointer<NativeFunction> posixFreePointer =
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:23:7: Error: 'Pointer' isn't a type.
final Pointer<NativeFunction> posixFreePointer =
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:24:5: Error: Undefined name 'Native'.
Native.addressOf(posixFree);
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:27:7: Error: 'DynamicLibrary' isn't a type.
final DynamicLibrary ole32lib = DynamicLibrary.open('ole32.dll');
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:27:33: Error: Undefined name 'DynamicLibrary'.
final DynamicLibrary ole32lib = DynamicLibrary.open('ole32.dll');
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:37:15: Error: 'NativeFunction' isn't a type.
final Pointer<NativeFunction> winCoTaskMemFreePointer =
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:37:7: Error: 'Pointer' isn't a type.
final Pointer<NativeFunction> winCoTaskMemFreePointer =
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:61:5: Error: 'Pointer' isn't a type.
Pointer result;
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:79:13: Error: 'Pointer' isn't a type.
void free(Pointer pointer) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:138:20: Error: 'Pointer' isn't a type.
void _fillMemory(Pointer destination, int length, int fill) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:139:34: Error: 'Uint8' isn't a type.
final ptr = destination.cast();
^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:147:20: Error: 'Pointer' isn't a type.
void _zeroMemory(Pointer destination, int length) =>
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:161:5: Error: 'Pointer' isn't a type.
Pointer result;
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:182:13: Error: 'Pointer' isn't a type.
void free(Pointer pointer) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:26:9: Error: 'Allocator' isn't a type.
final Allocator _wrappedAllocator;
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:29:22: Error: 'NativeType' isn't a type.
final List<Pointer> _managedMemoryPointers = [];
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:29:14: Error: 'Pointer' isn't a type.
final List<Pointer> _managedMemoryPointers = [];
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:40:10: Error: 'Allocator' isn't a type.
Arena([Allocator allocator = calloc]) : _wrappedAllocator = allocator;
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:101:21: Error: 'NativeType' isn't a type.
void free(Pointer pointer) {}
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:101:13: Error: 'Pointer' isn't a type.
void free(Pointer pointer) {}
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:120:6: Error: 'Allocator' isn't a type.
[Allocator wrappedAllocator = calloc]) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:144:6: Error: 'Allocator' isn't a type.
[Allocator wrappedAllocator = calloc]) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:25:28: Error: 'Uint16' isn't a type.
final codeUnits = cast();
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:42:28: Error: 'Uint16' isn't a type.
final codeUnits = cast();
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:51:46: Error: 'Uint16' isn't a type.
static String _toKnownLengthString(Pointer codeUnits, int length) =>
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:51:38: Error: 'Pointer' isn't a type.
static String _toKnownLengthString(Pointer codeUnits, int length) =>
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:54:48: Error: 'Uint16' isn't a type.
static String _toUnknownLengthString(Pointer codeUnits) {
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:54:40: Error: 'Pointer' isn't a type.
static String _toUnknownLengthString(Pointer codeUnits) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:67:30: Error: 'Uint16' isn't a type.
static int _length(Pointer codeUnits) {
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:67:22: Error: 'Pointer' isn't a type.
static int _length(Pointer codeUnits) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:92:33: Error: 'Allocator' isn't a type.
Pointer toNativeUtf16({Allocator allocator = malloc}) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:94:30: Error: 'Uint16' isn't a type.
final result = allocator(units.length + 1);
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:25:28: Error: 'Uint8' isn't a type.
final codeUnits = cast();
^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:42:28: Error: 'Uint8' isn't a type.
final codeUnits = cast();
^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:51:30: Error: 'Uint8' isn't a type.
static int _length(Pointer codeUnits) {
^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:51:22: Error: 'Pointer' isn't a type.
static int _length(Pointer codeUnits) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:80:31: Error: 'Allocator' isn't a type.
Pointer toNativeUtf8({Allocator allocator = malloc}) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:82:30: Error: 'Uint8' isn't a type.
final result = allocator(units.length + 1);
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:31: Error: Only JS interop members may be 'external'.
Try removing the 'external' keyword or adding a JS interop annotation.
external Array<Array> buf;
^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:11:18: Error: Only JS interop members may be 'external'.
Try removing the 'external' keyword or adding a JS interop annotation.
external Pointer posixMalloc(int size);
^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:16:18: Error: Only JS interop members may be 'external'.
Try removing the 'external' keyword or adding a JS interop annotation.
external Pointer posixCalloc(int num, int size);
^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:21:15: Error: Only JS interop members may be 'external'.
Try removing the 'external' keyword or adding a JS interop annotation.
external void posixFree(Pointer ptr);
^
Unhandled exception:
Unsupported operation: Unsupported invalid type InvalidType() (InvalidType). Encountered while compiling
file:///Users/vvdn/.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart, which contains the type: InvalidType().
#0 ProgramCompiler._typeCompilationError (package:dev_compiler/src/kernel/compiler.dart:3224) onvif NVT initialize: Exception: DioError [DioErrorType.other]: SocketException #1 ProgramCompiler._emitType (package:dev_compiler/src/kernel/compiler.dart:3185) Unhandled Exception: type 'Null' is not a subtype of type 'Map<String, dynamic>' in type cast #2 ProgramCompiler._emitClassSignature (package:dev_compiler/src/kernel/compiler.dart:1556) HttpException: Invalid response line #3 ProgramCompiler._emitClassDeclaration (package:dev_compiler/src/kernel/compiler.dart:962) Unhandled Exception: type 'Null' is not a subtype of type 'Map<String, dynamic>' in type cast #4 ProgramCompiler._emitClass (package:dev_compiler/src/kernel/compiler.dart:819) Issue 4 #5 List.forEach (dart:core-patch/growable_array.dart:417) DioError [DioErrorType.other]: HttpException: Connection closed before full header was received #6 ProgramCompiler._emitLibrary (package:dev_compiler/src/kernel/compiler.dart:757) ONVIF SOAP faults do not match the spec they refer to on some devices #7 List.forEach (dart:core-patch/growable_array.dart:417) HttpException: Invalid response line #8 ProgramCompiler.emitModule (package:dev_compiler/src/kernel/compiler.dart:486) Can't build apk on example #9 IncrementalJavaScriptBundler.compile (package:frontend_server/src/javascript_bundle.dart:221) [GetProfiles] DioError [DioErrorType.other]: HttpException: Connection closed before full header was received. #10 FrontendCompiler.writeJavaScriptBundle (package:frontend_server/frontend_server.dart:870)
#11 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:685)
#12 listenAndCompile. (package:frontend_server/frontend_server.dart:1385)
the Dart compiler exited unexpectedly.
Waiting for connection from debug service on Chrome... 4.1s
Failed to compile application.`
The text was updated successfully, but these errors were encountered:
prabakaranios
changed the title
WEB APP: MulticastProbe(): calling this function in flutter web app.
WEB APP run time error: MulticastProbe(): calling this function in flutter web app.
Nov 20, 2024
We get the below error when calling the MulticastProbe() from the web app.
`bash-3.2$ flutter run
Connected devices:
macOS (desktop) • macos • darwin-arm64 • macOS 14.6.1 23G93 darwin-arm64 (Rosetta)
Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.6.1 23G93 darwin-arm64 (Rosetta)
Chrome (web) • chrome • web-javascript • Google Chrome 130.0.6723.117
Checking for wireless devices...
[2]: Mac Designed for iPad (mac-designed-for-ipad)
[3]: Chrome (chrome)
Please choose one (or "q" to quit): 3
Launching lib/main.dart on Chrome in debug mode...
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:1:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
^
Context: The unavailable library 'dart:ffi' is imported through these packages:
Detailed import paths for (some of) the these imports:
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:5:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:8:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:5:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:6:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:12:42: Error: Type 'Struct' not found.
sealed class _OnvifDiscoveryData extends Struct {
^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:13:10: Error: Type 'Int8' not found.
@array(128, 8192)
^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:24: Error: Type 'Int8' not found.
external Array<Array> buf;
^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:18: Error: Type 'Array' not found.
external Array<Array> buf;
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:12: Error: Type 'Array' not found.
external Array<Array> buf;
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:35: Error: Type 'NativeType' not found.
late final int Function(Pointer, Pointer, int)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:27: Error: Type 'Pointer' not found.
late final int Function(Pointer, Pointer, int)
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:56: Error: Type 'NativeType' not found.
late final int Function(Pointer, Pointer, int)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:48: Error: Type 'Pointer' not found.
late final int Function(Pointer, Pointer, int)
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:8:29: Error: Type 'Pointer' not found.
typedef PosixMallocNative = Pointer Function(IntPtr);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:8:46: Error: Type 'IntPtr' not found.
typedef PosixMallocNative = Pointer Function(IntPtr);
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:11:10: Error: Type 'Pointer' not found.
external Pointer posixMalloc(int size);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:13:29: Error: Type 'Pointer' not found.
typedef PosixCallocNative = Pointer Function(IntPtr num, IntPtr size);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:13:46: Error: Type 'IntPtr' not found.
typedef PosixCallocNative = Pointer Function(IntPtr num, IntPtr size);
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:13:58: Error: Type 'IntPtr' not found.
typedef PosixCallocNative = Pointer Function(IntPtr num, IntPtr size);
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:16:10: Error: Type 'Pointer' not found.
external Pointer posixCalloc(int num, int size);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:18:27: Error: Type 'Void' not found.
typedef PosixFreeNative = Void Function(Pointer);
^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:18:41: Error: Type 'Pointer' not found.
typedef PosixFreeNative = Void Function(Pointer);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:20:9: Error: Type 'Void' not found.
@Native<Void Function(Pointer)>(symbol: 'free')
^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:20:23: Error: Type 'Pointer' not found.
@Native<Void Function(Pointer)>(symbol: 'free')
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:21:25: Error: Type 'Pointer' not found.
external void posixFree(Pointer ptr);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:23:15: Error: Type 'NativeFunction' not found.
final Pointer<NativeFunction> posixFreePointer =
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:23:7: Error: Type 'Pointer' not found.
final Pointer<NativeFunction> posixFreePointer =
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:27:7: Error: Type 'DynamicLibrary' not found.
final DynamicLibrary ole32lib = DynamicLibrary.open('ole32.dll');
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:29:35: Error: Type 'Pointer' not found.
typedef WinCoTaskMemAllocNative = Pointer Function(Size);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:29:52: Error: Type 'Size' not found.
typedef WinCoTaskMemAllocNative = Pointer Function(Size);
^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:30:29: Error: Type 'Pointer' not found.
typedef WinCoTaskMemAlloc = Pointer Function(int);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:35:34: Error: Type 'Void' not found.
typedef WinCoTaskMemFreeNative = Void Function(Pointer);
^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:35:48: Error: Type 'Pointer' not found.
typedef WinCoTaskMemFreeNative = Void Function(Pointer);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:36:42: Error: Type 'Pointer' not found.
typedef WinCoTaskMemFree = void Function(Pointer);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:37:15: Error: Type 'NativeFunction' not found.
final Pointer<NativeFunction> winCoTaskMemFreePointer =
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:37:7: Error: Type 'Pointer' not found.
final Pointer<NativeFunction> winCoTaskMemFreePointer =
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:48:40: Error: Type 'Allocator' not found.
final class MallocAllocator implements Allocator {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:60:3: Error: Type 'Pointer' not found.
Pointer allocate(int byteCount, {int? alignment}) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:60:33: Error: Type 'NativeType' not found.
Pointer allocate(int byteCount, {int? alignment}) {
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:79:13: Error: Type 'Pointer' not found.
void free(Pointer pointer) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:115:11: Error: Type 'NativeFinalizerFunction' not found.
Pointer get nativeFree =>
^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:115:3: Error: Type 'Pointer' not found.
Pointer get nativeFree =>
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:134:40: Error: Type 'Allocator' not found.
final class CallocAllocator implements Allocator {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:138:20: Error: Type 'Pointer' not found.
void _fillMemory(Pointer destination, int length, int fill) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:147:20: Error: Type 'Pointer' not found.
void _zeroMemory(Pointer destination, int length) =>
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:160:3: Error: Type 'Pointer' not found.
Pointer allocate(int byteCount, {int? alignment}) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:160:33: Error: Type 'NativeType' not found.
Pointer allocate(int byteCount, {int? alignment}) {
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:182:13: Error: Type 'Pointer' not found.
void free(Pointer pointer) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:218:11: Error: Type 'NativeFinalizerFunction' not found.
Pointer get nativeFree =>
^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:218:3: Error: Type 'Pointer' not found.
Pointer get nativeFree =>
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:24:24: Error: Type 'Allocator' not found.
class Arena implements Allocator {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:26:9: Error: Type 'Allocator' not found.
final Allocator _wrappedAllocator;
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:29:22: Error: Type 'NativeType' not found.
final List<Pointer> _managedMemoryPointers = [];
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:29:14: Error: Type 'Pointer' not found.
final List<Pointer> _managedMemoryPointers = [];
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:40:10: Error: Type 'Allocator' not found.
Arena([Allocator allocator = calloc]) : _wrappedAllocator = allocator;
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:50:3: Error: Type 'Pointer' not found.
Pointer allocate(int byteCount, {int? alignment}) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:50:33: Error: Type 'NativeType' not found.
Pointer allocate(int byteCount, {int? alignment}) {
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:101:21: Error: Type 'NativeType' not found.
void free(Pointer pointer) {}
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:101:13: Error: Type 'Pointer' not found.
void free(Pointer pointer) {}
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:120:6: Error: Type 'Allocator' not found.
[Allocator wrappedAllocator = calloc]) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:144:6: Error: Type 'Allocator' not found.
[Allocator wrappedAllocator = calloc]) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:15:27: Error: Type 'Opaque' not found.
final class Utf16 extends Opaque {}
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:18:27: Error: Type 'Pointer' not found.
extension Utf16Pointer on Pointer {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:51:46: Error: Type 'Uint16' not found.
static String _toKnownLengthString(Pointer codeUnits, int length) =>
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:51:38: Error: Type 'Pointer' not found.
static String _toKnownLengthString(Pointer codeUnits, int length) =>
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:54:48: Error: Type 'Uint16' not found.
static String _toUnknownLengthString(Pointer codeUnits) {
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:54:40: Error: Type 'Pointer' not found.
static String _toUnknownLengthString(Pointer codeUnits) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:67:30: Error: Type 'Uint16' not found.
static int _length(Pointer codeUnits) {
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:67:22: Error: Type 'Pointer' not found.
static int _length(Pointer codeUnits) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:92:3: Error: Type 'Pointer' not found.
Pointer toNativeUtf16({Allocator allocator = malloc}) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:92:33: Error: Type 'Allocator' not found.
Pointer toNativeUtf16({Allocator allocator = malloc}) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:15:26: Error: Type 'Opaque' not found.
final class Utf8 extends Opaque {}
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:18:26: Error: Type 'Pointer' not found.
extension Utf8Pointer on Pointer {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:51:30: Error: Type 'Uint8' not found.
static int _length(Pointer codeUnits) {
^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:51:22: Error: Type 'Pointer' not found.
static int _length(Pointer codeUnits) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:80:3: Error: Type 'Pointer' not found.
Pointer toNativeUtf8({Allocator allocator = malloc}) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:80:31: Error: Type 'Allocator' not found.
Pointer toNativeUtf8({Allocator allocator = malloc}) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:11:2: Error: Couldn't find constructor 'Packed'.
@PACKED(1)
^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:13:10: Error: 'Int8' isn't a type.
@array(128, 8192)
^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:13:4: Error: Couldn't find constructor 'Array'.
@array(128, 8192)
^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:10:2: Error: Couldn't find constructor 'Native'.
@Native(symbol: 'malloc')
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:15:2: Error: Couldn't find constructor 'Native'.
@Native(symbol: 'calloc')
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:20:9: Error: 'Void' isn't a type.
@Native<Void Function(Pointer)>(symbol: 'free')
^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:20:23: Error: 'Pointer' isn't a type.
@Native<Void Function(Pointer)>(symbol: 'free')
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:20:2: Error: Couldn't find constructor 'Native'.
@Native<Void Function(Pointer)>(symbol: 'free')
^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:24: Error: 'Int8' isn't a type.
external Array<Array> buf;
^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:18: Error: 'Array' isn't a type.
external Array<Array> buf;
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:12: Error: 'Array' isn't a type.
external Array<Array> buf;
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:35: Error: 'NativeType' isn't a type.
late final int Function(Pointer, Pointer, int)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:27: Error: 'Pointer' isn't a type.
late final int Function(Pointer, Pointer, int)
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:56: Error: 'NativeType' isn't a type.
late final int Function(Pointer, Pointer, int)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:18:48: Error: 'Pointer' isn't a type.
late final int Function(Pointer, Pointer, int)
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:69:41: Error: 'NativeType' isn't a type.
final Pointer Function(String symbolName) lookup =
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:69:11: Error: 'Pointer' isn't a type.
final Pointer Function(String symbolName) lookup =
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:76:13: Error: 'Int32' isn't a type.
Int32 Function(
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:77:23: Error: 'NativeType' isn't a type.
Pointer,
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:77:15: Error: 'Pointer' isn't a type.
Pointer,
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:78:23: Error: 'NativeType' isn't a type.
Pointer,
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:78:15: Error: 'Pointer' isn't a type.
Pointer,
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:79:15: Error: 'Int32' isn't a type.
Int32,
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:75:9: Error: 'NativeFunction' isn't a type.
NativeFunction<
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:84:19: Error: 'NativeType' isn't a type.
Pointer,
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:84:11: Error: 'Pointer' isn't a type.
Pointer,
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:85:19: Error: 'NativeType' isn't a type.
Pointer,
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:85:11: Error: 'Pointer' isn't a type.
Pointer,
^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:71:14: Error: The getter 'DynamicLibrary' isn't defined for the class 'MulticastProbe'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'DynamicLibrary'.
return DynamicLibrary.open(discoveryDllPath).lookup;
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:154:24: Error: The method 'call' isn't defined for the class 'CallocAllocator'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
final data = calloc<_OnvifDiscoveryData>();
^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:163:11: Error: The getter 'Pointer' isn't defined for the class 'MulticastProbe'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Pointer'.
Pointer.fromAddress(data.address + index * 8192)
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:21:25: Error: 'Pointer' isn't a type.
external void posixFree(Pointer ptr);
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:23:15: Error: 'NativeFunction' isn't a type.
final Pointer<NativeFunction> posixFreePointer =
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:23:7: Error: 'Pointer' isn't a type.
final Pointer<NativeFunction> posixFreePointer =
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:24:5: Error: Undefined name 'Native'.
Native.addressOf(posixFree);
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:27:7: Error: 'DynamicLibrary' isn't a type.
final DynamicLibrary ole32lib = DynamicLibrary.open('ole32.dll');
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:27:33: Error: Undefined name 'DynamicLibrary'.
final DynamicLibrary ole32lib = DynamicLibrary.open('ole32.dll');
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:37:15: Error: 'NativeFunction' isn't a type.
final Pointer<NativeFunction> winCoTaskMemFreePointer =
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:37:7: Error: 'Pointer' isn't a type.
final Pointer<NativeFunction> winCoTaskMemFreePointer =
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:61:5: Error: 'Pointer' isn't a type.
Pointer result;
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:79:13: Error: 'Pointer' isn't a type.
void free(Pointer pointer) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:138:20: Error: 'Pointer' isn't a type.
void _fillMemory(Pointer destination, int length, int fill) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:139:34: Error: 'Uint8' isn't a type.
final ptr = destination.cast();
^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:147:20: Error: 'Pointer' isn't a type.
void _zeroMemory(Pointer destination, int length) =>
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:161:5: Error: 'Pointer' isn't a type.
Pointer result;
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:182:13: Error: 'Pointer' isn't a type.
void free(Pointer pointer) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:26:9: Error: 'Allocator' isn't a type.
final Allocator _wrappedAllocator;
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:29:22: Error: 'NativeType' isn't a type.
final List<Pointer> _managedMemoryPointers = [];
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:29:14: Error: 'Pointer' isn't a type.
final List<Pointer> _managedMemoryPointers = [];
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:40:10: Error: 'Allocator' isn't a type.
Arena([Allocator allocator = calloc]) : _wrappedAllocator = allocator;
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:101:21: Error: 'NativeType' isn't a type.
void free(Pointer pointer) {}
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:101:13: Error: 'Pointer' isn't a type.
void free(Pointer pointer) {}
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:120:6: Error: 'Allocator' isn't a type.
[Allocator wrappedAllocator = calloc]) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/arena.dart:144:6: Error: 'Allocator' isn't a type.
[Allocator wrappedAllocator = calloc]) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:25:28: Error: 'Uint16' isn't a type.
final codeUnits = cast();
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:42:28: Error: 'Uint16' isn't a type.
final codeUnits = cast();
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:51:46: Error: 'Uint16' isn't a type.
static String _toKnownLengthString(Pointer codeUnits, int length) =>
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:51:38: Error: 'Pointer' isn't a type.
static String _toKnownLengthString(Pointer codeUnits, int length) =>
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:54:48: Error: 'Uint16' isn't a type.
static String _toUnknownLengthString(Pointer codeUnits) {
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:54:40: Error: 'Pointer' isn't a type.
static String _toUnknownLengthString(Pointer codeUnits) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:67:30: Error: 'Uint16' isn't a type.
static int _length(Pointer codeUnits) {
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:67:22: Error: 'Pointer' isn't a type.
static int _length(Pointer codeUnits) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:92:33: Error: 'Allocator' isn't a type.
Pointer toNativeUtf16({Allocator allocator = malloc}) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf16.dart:94:30: Error: 'Uint16' isn't a type.
final result = allocator(units.length + 1);
^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:25:28: Error: 'Uint8' isn't a type.
final codeUnits = cast();
^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:42:28: Error: 'Uint8' isn't a type.
final codeUnits = cast();
^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:51:30: Error: 'Uint8' isn't a type.
static int _length(Pointer codeUnits) {
^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:51:22: Error: 'Pointer' isn't a type.
static int _length(Pointer codeUnits) {
^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:80:31: Error: 'Allocator' isn't a type.
Pointer toNativeUtf8({Allocator allocator = malloc}) {
^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/utf8.dart:82:30: Error: 'Uint8' isn't a type.
final result = allocator(units.length + 1);
^^^^^
../../../.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart:14:31: Error: Only JS interop members may be 'external'.
Try removing the 'external' keyword or adding a JS interop annotation.
external Array<Array> buf;
^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:11:18: Error: Only JS interop members may be 'external'.
Try removing the 'external' keyword or adding a JS interop annotation.
external Pointer posixMalloc(int size);
^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:16:18: Error: Only JS interop members may be 'external'.
Try removing the 'external' keyword or adding a JS interop annotation.
external Pointer posixCalloc(int num, int size);
^
../../../.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/src/allocation.dart:21:15: Error: Only JS interop members may be 'external'.
Try removing the 'external' keyword or adding a JS interop annotation.
external void posixFree(Pointer ptr);
^
Unhandled exception:
Unsupported operation: Unsupported invalid type InvalidType() (InvalidType). Encountered while compiling
file:///Users/vvdn/.pub-cache/hosted/pub.dev/easy_onvif-3.0.1+1/lib/src/multicast_probe.dart, which contains the type: InvalidType().
#0 ProgramCompiler._typeCompilationError (package:dev_compiler/src/kernel/compiler.dart:3224)
onvif NVT initialize: Exception: DioError [DioErrorType.other]: SocketException #1 ProgramCompiler._emitType (package:dev_compiler/src/kernel/compiler.dart:3185)
Unhandled Exception: type 'Null' is not a subtype of type 'Map<String, dynamic>' in type cast #2 ProgramCompiler._emitClassSignature (package:dev_compiler/src/kernel/compiler.dart:1556)
HttpException: Invalid response line #3 ProgramCompiler._emitClassDeclaration (package:dev_compiler/src/kernel/compiler.dart:962)
Unhandled Exception: type 'Null' is not a subtype of type 'Map<String, dynamic>' in type cast #4 ProgramCompiler._emitClass (package:dev_compiler/src/kernel/compiler.dart:819)
Issue 4 #5 List.forEach (dart:core-patch/growable_array.dart:417)
DioError [DioErrorType.other]: HttpException: Connection closed before full header was received #6 ProgramCompiler._emitLibrary (package:dev_compiler/src/kernel/compiler.dart:757)
ONVIF SOAP faults do not match the spec they refer to on some devices #7 List.forEach (dart:core-patch/growable_array.dart:417)
HttpException: Invalid response line #8 ProgramCompiler.emitModule (package:dev_compiler/src/kernel/compiler.dart:486)
Can't build apk on example #9 IncrementalJavaScriptBundler.compile (package:frontend_server/src/javascript_bundle.dart:221)
[GetProfiles] DioError [DioErrorType.other]: HttpException: Connection closed before full header was received. #10 FrontendCompiler.writeJavaScriptBundle (package:frontend_server/frontend_server.dart:870)
### Flutter version Detail:
bash-3.2$ flutter --version Flutter 3.24.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision dec2ee5c1f (6 days ago) • 2024-11-13 11:13:06 -0800 Engine • revision a18df97ca5 Tools • Dart 3.5.4 • DevTools 2.37.3
Please help with this. Thanks.
The text was updated successfully, but these errors were encountered: