fnInitLayer typedef
Layer init function. It runs INSIDE the layer isolate, so it must be top-level/static. It may be async: the layer is considered initialized only after it returns.
Implementation
typedef fnInitLayer = FutureOr<void> Function(Layer, Object? initalData);