fx_http library

Classes

BaseEntity<T>
///////////////////////////////////////////////////////////// /////////////////////// 基础实体类 /////////////////////////// /////////////////////////////////////////////////////////////
BaseEntityKey
///////////////////////////////////////////////////////////////////// /////////////////////// 基础实体类对应的key /////////////////////////// /////////////////////////////////////////////////////////////////////
BaseModel
////////////////////////////////////////////////////////////////////////////// /////////////////////// 所有实体类都需要遵循的接口协议 /////////////////////////// //////////////////////////////////////////////////////////////////////////////
DateFormats
一些常用格式参照。可以自定义格式,例如:'yyyy/MM/dd HH:mm:ss','yyyy/M/d HH:mm:ss'。 格式要求 year -> yyyy/yy month -> MM/M day -> dd/d hour -> HH/H minute -> mm/m second -> ss/s
DateUtil
Date Util.
Device
DioUtils
EasyLoading
EasyLoadingAnimation
EncryptUtil
Encrypt Util.
EnInfo
EnNormalInfo
ExceptionHandler
FloatFormatter
FlutterEasyLoading
Formatter
IntFormatter
JsonUtil
Json Util.
Log
输出Log工具类
LogUtil
Log Util.
MoneyUtil
Money Util.
NetError
NumUtil
Num Util.
ObjectUtil
Object Util.
PageEntity<T>
PrintFormat
RegexUtil
Regex Util.
StringFormatter
TextUtil
Text Util.
TimelineInfo
Timeline information configuration. Timeline信息配置.
TimelineUtil
TimelineUtil
TimerUtil
TimerUtil.
ZhInfo
ZhNormalInfo

Enums

AttachmentType
DayFormat
(xx)Configurable output. (xx)为可配置输出.
EasyLoadingAnimationStyle
loading animation
EasyLoadingIndicatorType
loading indicator type. see https://github.com/jogboms/flutter_spinkit#-showcase
EasyLoadingMaskType
loading mask type none default mask type, allow user interactions while loading is displayed clear don't allow user interactions while loading is displayed black don't allow user interactions while loading is displayed custom while mask type is custom, maskColor should not be null
EasyLoadingStatus
loading status
EasyLoadingStyle
loading style
EasyLoadingToastPosition
toast position
Method
MoneyFormat
MoneyUnit

Extensions

newDioRequest on DioUtils
///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// ////////// 使用新的Dio发起请求,可以自定义baseUrl,path...等所有参数 ///////////// ///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

Constants

FxProxyCacheKey → const String

Properties

defaultBaseOptions ↔ BaseOptions
getter/setter pair
DioHttp DioUtils
*************************************************************/// *************************************************************/// *********************** 用户账户管理类 ************************/// *************************************************************/// *************************************************************/// 简写使用 DioHttp
getter/setter pair
ID_CARD_PROVINCE_DICT List<String>
id card province dict.
getter/setter pair
MONTH_DAY Map<int, int>
month->days.
getter/setter pair
sprintf PrintFormat
getter/setter pair

Functions

getAttachmentType(AttachmentType type) String
getRequestMethod(Method method) String
setLocaleInfo(String locale, TimelineInfo timelineInfo) → void
add custom configuration.

Typedefs

EasyLoadingStatusCallback = void Function(EasyLoadingStatus status)
OnTimerTickCallback = void Function(int millisUntilFinished)
timer callback.(millisUntilFinished 毫秒).
PrintFormatFormatter = Formatter Function(dynamic arg, dynamic options)
ValidateApiSuccess = bool Function(BaseEntity data)
用于自定义判断接口返回的数据是否正确