updateDisplayName method

Future<void> updateDisplayName(
  1. String displayName
)

Implementation

Future<void> updateDisplayName(String displayName) async {
  if (displayName.isEmpty) return;
  if (currentUser == null) return;
  await currentUser!.updateDisplayName(displayName);
}