resource.pbenum library Null safety