mountOrNull method

Component? mountOrNull(
  1. String? sId
)

Returns null if sId is null, and otherwise the same as mount.

Implementation

Component? mountOrNull(String? sId) {
  if (sId == null) return null;
  return mount(sId);
}