getErrorMessage static method

String getErrorMessage([
  1. String process = ''
])

Implementation

static String getErrorMessage([String process = '']) {
  if (process.isEmpty) {
    return 'Sorry, an error occurred. Please try again,'
        ' or contact Slade 360 Be.Well Support support'
        ' on $kBewellSupportPhoneNumber';
  } else {
    return 'Sorry, an error occurred while $process.'
        ' Please try again later, or contact Slade 360 Be.Well '
        'Support on $kBewellSupportPhoneNumber';
  }
}