Source.fromImage constructor

Source.fromImage(
  1. String source
)

Creates a new source from an image. The source should be pointing to a valid image file.

Implementation

Source.fromImage(this.source) : _type = "image";