deviceVariant property

WindowVariant deviceVariant

Implementation

WindowVariant get deviceVariant {
  final scopedDeviceVariant = _deviceVariant;
  if (scopedDeviceVariant == null) {
    throw Exception(
      '''Device variant is not set.
please set it first in the [testExecutable] method.
See: https://api.flutter.dev/flutter/flutter_test/flutter_test-library.html
''',
    );
  }
  return scopedDeviceVariant;
}