onPostFrame static method

void onPostFrame(
  1. Duration timeStamp
)

Implementation

static void onPostFrame(Duration timeStamp) {
  _callbacks.forEach((key, value) {
    value.resolve(VoltronMap());
  });
  if (_callbacks.isNotEmpty) {
    SchedulerBinding.instance.addPostFrameCallback(onPostFrame);
  }
}