Actor constructor

Actor({
  1. required String name,
  2. String? mbox,
  3. Account? account,
  4. String objectType = 'Agent',
})

Implementation

Actor({
  required this.name,
  this.mbox,
  this.account,
  this.objectType = 'Agent',
}) : assert(
       mbox != null || account != null,
       'An Actor must have either an mbox or an account',
     );