fromDatabase method

Future<String?> fromDatabase(
  1. String key
)

Implementation

Future<String?> fromDatabase(String key) async
{
  String? template;
  try
  {
    // lookup from local hive
    Form? form = await Form.find(key);
    if (form != null) template = form.template;
  }
  catch(e)
  {
    Log().exception(e);
    template = null;
  }
  return template;
}