Action class

Represents an action performed in the C2PA provenance chain.

Constructors

Action.new({required String action, String? when, String? changed, Map<String, dynamic>? parameters, List<String>? creators, String? sourceType, List<Action>? related, String? reason, String? description})
Creates an instance of Action.
const
Action.fromJson(Map<String, dynamic> json)
Creates an Action from a JSON map.
factory

Properties

action String
The label associated with this action. See (`c2pa_action`).
final
changed String?
A semicolon-delimited list of the parts of the resource that were changed since the previous event history.
final
creators List<String>?
An array of the creators that undertook this action.
final
description String?
A human-readable description of the action.
final
hashCode int
The hash code for this object.
no setterinherited
parameters Map<String, dynamic>?
Additional parameters of the action. These vary by the type of action.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
reason String?
The reason why this action was performed, required when the action is c2pa.redacted
final
List of related actions.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceType String?
One of the defined URI values at <https://cv.iptc.org/newscodes/digitalsourcetype/>
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
when String?
Timestamp of when the action occurred.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited