of static method

dynamic of(
  1. Type type, [
  2. bool list = false
])

Implementation

static of(Type type, [bool list = false]) {
  if (type == DrawerItemRF) {
    if (list) {
      return <DrawerItemRF>[];
    } else {
      return DrawerItemRF(template: TemplateRF(null, version: 'EmptyRF'));
    }
  } else if (type == List) {
    return <Widget>[];
  }
}