render method

Widget render()

Render the loading widget

Implementation

Widget render() {
  switch (type) {
    case LoadingStyleType.normal:
      return child ?? Nylo.appLoader();
    case LoadingStyleType.skeletonizer:
      return Skeletonizer(
        enabled: true,
        child: child ?? Nylo.appLoader(),
      );
    case LoadingStyleType.none:
      return SizedBox.shrink();
  }
}