styleInstanceGenerator<T> function

Widget styleInstanceGenerator<T>({
  1. required Map<String, dynamic> resolvedProps,
})

Implementation

Widget styleInstanceGenerator<T>(
    {required Map<String, dynamic> resolvedProps}) {
  if (T == Container) {
    return getContainer(resolvedProps);
  } else if (T == Text) {
    return getText(resolvedProps);
  } else {
    return Container();
  }
}