canApply property

bool get canApply

Checks if the content update can be applied.

Returns true when the updater has a fully or partially downloaded update that can be applied by calling apply. Note that applying a partially downloaded update will remove any old content that was not updated and may restrict offline availability.

Returns

  • bool: true if the update can be applied, otherwise false.

Implementation

bool get canApply {
  final OperationResult resultString = objectMethod(
    pointerId,
    'ContentUpdater',
    'canApply',
  );

  return resultString['result'];
}