tlSetEnvironment static method

Future<void> tlSetEnvironment({
  1. required int screenWidth,
  2. required int screenHeight,
})

Implementation

static Future<void> tlSetEnvironment(
    {required int screenWidth, required int screenHeight}) async {
  try {
    await _channel.invokeMethod(
        'setenv', {'screenw': screenWidth, 'screenh': screenHeight});
  } on PlatformException catch (pe) {
    throw TealeafException(pe,
        msg: 'Unable to send Flutter screen parameters message!');
  }
}