AssetState constructor

AssetState(
  1. {@required int index,
  2. @required Asset asset,
  3. @required double width,
  4. @required double height}
)

Implementation

AssetState(
    {@required this.index, @required this.asset, @required this.width, @required this.height}) {
  const prefix = 'flutter.yang.me/photos_library/image';
  this._channelName = prefix + '/' + this.asset.identifier;
}