smf_core library
Classes
- ALC
- Application layout config
- ApiUtils
- DateTimeUtil
- Utility functions for DateTime
- DividerWithCenterText
-
DomainResult<
T> -
Fresh<
T> -
Wrapper generic class for returning
domain
data fromrepository
. - HideKeyboard
- ImagePlaceholder
- ImageUtils
- Utility functions for images croping, compressing, etc.
- Logger
-
Logging message to console as
developer
. - OTPInput
-
PaginatedData<
T> -
Wrapper generic class for returning
domain
data fromrepository
with pagination support. - ResponseInfoDto
-
Data transfer object for
responseInfo
object fromSOAP APIs
response. -
Result<
T> - Wrapper generic class for network response data.
- SizeConfig
- Screen size configuration.
- SmfContainer
- SmfSocialAuthButton
- SmfStateButton
- VimeoConfigDto
- Vimeo configuration data object.
- VimeoErrorResponseDto
- Vimeo error response data object.
- VimeoFailure
- Vimeo failure object.
- VimeoFilesDto
- Vimeo files data object.
- VimeoLinkInfoDto
- Vimeo video link info data object.
- VimeoRemoteService
-
Remote service for
Vimeo
api. - VimeoRepository
-
Repository class to communicate between
domain
layer andinfrastructure
layer. - VimeoRequestDto
- Vimeo request data object.
-
VimeoResponse<
T> - Data wrapper class for vimeo api response.
- VimeoVideoLink
-
domain
layer model for vimeo video link data object. - VimeoVideoLinkDto
- Vimeo video link data object.
- YoutubeService
-
Remote service for
YouTube
video link. - YoutubeVideoQualityUrl
- YtHelper
-
Utilitiy helpers for
YouTube
video url.
Enums
Extensions
- BuildContextX on BuildContext
- Extensions for BuildContext.
- DateTimeX on DateTime
- Utilitity extensions for DateTime
- DioErrorX on DioError
-
Extensions of
DioError
. -
DtoListToDomainList
on List<
VimeoVideoLinkDto> - IntX on int
- Extensions for int.
- StringX on String
- Utilitiy extensions for String.
Properties
-
dioForApplicationJSONProvider
→ Provider<
Dio> -
Provide
Dio
client for content typeapplication/json
.final -
dioForFormUrlEncodedProvider
→ Provider<
Dio> -
Provide
Dio
client for content typeapplication/x-www-form-urlencoded
.final -
dioForXmlProvider
→ Provider<
Dio> -
Provide
Dio
client for content typetext/xml; charset=utf-8
.final
Functions
-
getProportionateScreenHeight(
double inputHeight) → double -
getProportionateScreenWidth(
double inputWidth) → double -
launchInAppWebView(
Uri url, {Map< String, String> headers = const <String, String>{}}) → Future<void> -
Launch Uri in
InAppWebView
. -
launchInBrowser(
Uri url) → Future< void> -
Launch Uri in
Browser
. -
launchInWebViewWithoutDomStorage(
Uri url) → Future< void> -
Launch Uri in
InAppWebView
withoudDOM Storage
. -
launchInWebViewWithoutJavaScript(
Uri url) → Future< void> -
Launch Uri in
InAppWebView
withoudjavascript
. -
launchUniversalLinkIos(
Uri url) → Future< void> -
Launch universal Uri link in
iOS
. -
nextDecode<
T> (dynamic json, String key) → T -
Decode to json
2nd
time because consumingSOAP
api need to convert for second time. -
numFromJson(
Object? json) → num -
Convert
null
value from Object to0
. -
responseData<
T> (Response response) → T -
Convert
data
ofResponse
toT
-
stringFromJson(
Object? json) → String -
Convert
null
value from Object toempty
string.
Exceptions / Errors
- RestApiException
-
Specific Exception for
Rest APIs
. - SoapApiException
-
Specific Exception for
Soap APIs
. - VimeoApiException
- Vimeo Exception will throw when the vimeo api request fail.