V_getScreen function

CyberFormView? V_getScreen(
  1. String strfrm,
  2. String title,
  3. String cpName,
  4. String strparameter, {
  5. bool hideAppBar = false,
  6. bool isMainScreen = false,
})

Get CyberFormView từ tên form

Implementation

// ignore: non_constant_identifier_names
CyberFormView? V_getScreen(
  String strfrm,
  String title,
  String cpName,
  String strparameter, {
  bool hideAppBar = false,
  bool isMainScreen = false,
}) {
  final normalizedName = strfrm.toLowerCase().trim();
  final factory = _factoryMap_form[normalizedName];

  if (factory == null) return null;

  return CyberFormView(
    title: title,
    formBuilder: factory,
    cp_name: cpName,
    strparameter: strparameter,
    hideAppBar: hideAppBar,
    isMainScreen: isMainScreen,
  );
}