public static void FlutterScreenshot(this ICakeContext context, FlutterScreenshotSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } var runner = new GenericRunner <FlutterScreenshotSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); runner.Run("screenshot", settings ?? new FlutterScreenshotSettings()); }
public static IEnumerable <string> FlutterScreenshotWithResult(this ICakeContext context, FlutterScreenshotSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } var runner = new GenericRunner <FlutterScreenshotSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); return(runner.RunWithResult("screenshot", settings ?? new FlutterScreenshotSettings())); }