replace method

LaunchOptions replace({
  1. List<String>? args,
  2. DeviceViewport? defaultViewport = viewportNotOverride,
})

Implementation

LaunchOptions replace({
  List<String>? args,
  DeviceViewport? defaultViewport = viewportNotOverride,
}) {
  return LaunchOptions(
    args: args ?? this.args,
    defaultViewport:
        identical(defaultViewport, viewportNotOverride)
            ? this.defaultViewport
            : defaultViewport,
  );
}