Frame constructor

Frame({
  1. List<int>? data,
  2. double? duration,
  3. int? width,
  4. int? height,
})

Implementation

factory Frame({
  $core.List<$core.int>? data,
  $core.double? duration,
  $core.int? width,
  $core.int? height,
}) {
  final $result = create();
  if (data != null) {
    $result.data = data;
  }
  if (duration != null) {
    $result.duration = duration;
  }
  if (width != null) {
    $result.width = width;
  }
  if (height != null) {
    $result.height = height;
  }
  return $result;
}