selectAsset abstract method

  1. @protected
void selectAsset(
  1. BuildContext context,
  2. Asset asset,
  3. int index,
  4. bool selected,
)

The method to select assets. Delegates can implement this method to involve with predications, callbacks, etc. 选择资源的方法。自定义的 delegate 可以通过实现该方法,整合判断、回调等操作。

Implementation

@protected
void selectAsset(BuildContext context, Asset asset, int index, bool selected);