setup static method

void setup()

Initializes the subsystems of the virtual device. You need to call it before runApp.

Implementation

static void setup() {
  VirtualWidgetsFlutterBinding.ensureInitialized();
  available = true;
}