getButtonLabel method

Future<String> getButtonLabel({
  1. required AppsModel data,
  2. required bool installed,
})

Implementation

Future<String> getButtonLabel(
    {required AppsModel data, required bool installed}) async {
  if (data.open == 'web') return 'OPEN';
  return installed ? "OPEN" : "INSTALL";
}