dialog method

dynamic dialog({
  1. Type? type,
})

Implementation

dialog({Type? type}) {
  switch (type) {
    case Type.confirm:
      return confirm();
    case Type.error:
      return error();
    case Type.warning:
      return warning();
    case Type.input:
      return input();
    case Type.success:
      return success();
    default:
      return null;
  }
}