createdMessage static method

String createdMessage({
  1. required String id,
  2. required String ownerType,
})

Pure — so the exact wording is asserted without a Dio or a subprocess.

Implementation

static String createdMessage(
    {required String id, required String ownerType}) {
  final scope = ownerType == 'organization' ? 'organization app' : 'app';
  return 'Created $scope: $id';
}