swithTile method

dynamic swithTile(
  1. String title,
  2. String property
)

Implementation

swithTile(String title, String property) {
  return """
    SwitchTile(
              "${title}",
              obj!.${property},
              onChanged: (value){
          obj!.${property} = value;
          onChanged?.call("${property}");
        },
    ),
               """;
}