parse property

Image Function(dynamic value) parse

Parses Image instance from a given value.

Value can be one of the following:

  • Map - then object will be parsed into Image object.
  • Image - then value will be returned as-is.

Implementation

static Image Function(dynamic value) get parse =>
  ImageMapper.container.fromValue<Image>;