DeviceFixtures class

Test fixtures, fake platform implementations, and matchers for testing applications using flutter_local_device_discovery.

Import this library in your test files:

import 'package:flutter_local_device_discovery/testing.dart';

Common realistic mock device fixtures for unit and widget testing.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

appleTv LocalDevice
Mock Apple TV 4K media player.
final
hpLaserJetPrinter LocalDevice
Mock HP Color LaserJet Pro network printer.
final
onvifCamera LocalDevice
Mock Hikvision ONVIF IP Security Camera.
final
philipsHueBridge LocalDevice
Mock Philips Hue Smart Lighting Bridge.
final